mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-19 08:03:14 +08:00
Do not call setsockopts() on a listening connection
This commit is contained in:
parent
2594e7b37a
commit
381d7cce54
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user