mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 14:13:33 -06:00
avoid segfault if poll is used and endless loop if select is used
This commit is contained in:
parent
336943dd7e
commit
dde2abde39
@ -1054,7 +1054,7 @@ ngx_channel_handler(ngx_event_t *ev)
|
||||
|
||||
if (n == NGX_ERROR) {
|
||||
|
||||
ngx_free_connection(c);
|
||||
ngx_close_connection(c);
|
||||
|
||||
fd = c->fd;
|
||||
c->fd = (ngx_socket_t) -1;
|
||||
|
Loading…
Reference in New Issue
Block a user