mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-18 10:59:45 +00:00
Do not call setsockopts() on a listening connection
This commit is contained in:
1 parent
2594e7b37a
commit
381d7cce54
2 files changed
-2
No files matched your search
@@ -3068,7 +3068,6 @@ struct mg_connection *mg_listen(struct mg_mgr *mgr, const char *url,
|
||||
c->fd = sock2ptr(fd);
|
||||
c->is_listening = 1;
|
||||
c->is_udp = is_udp;
|
||||
setsockopts(c);
|
||||
LIST_ADD_HEAD(struct mg_connection, &mgr->conns, c);
|
||||
c->fn = fn;
|
||||
c->fn_data = fn_data;
|
||||
|
||||
@@ -477,7 +477,6 @@ struct mg_connection *mg_listen(struct mg_mgr *mgr, const char *url,
|
||||
c->fd = sock2ptr(fd);
|
||||
c->is_listening = 1;
|
||||
c->is_udp = is_udp;
|
||||
setsockopts(c);
|
||||
LIST_ADD_HEAD(struct mg_connection, &mgr->conns, c);
|
||||
c->fn = fn;
|
||||
c->fn_data = fn_data;
|
||||
|
||||
Reference in new issue
Block a user