Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

lighttpd thinks it runs out of fds in high volume environments #13

Closed
tsunami650 opened this issue Aug 23, 2011 · 0 comments
Closed

lighttpd thinks it runs out of fds in high volume environments #13

tsunami650 opened this issue Aug 23, 2011 · 0 comments
Assignees
Labels

Comments

@tsunami650
Copy link

server *src->cur_fds is incremented in _tcp_server_connect, but not decremented in _tcp_server_disconnect, eventually tricking lighttpd into thinking it is out of fds. Fix:

*** mod_websocket.c 2011-07-19 14:48:06.000000000 -0700
--- updated-mod_websocket.c 2011-08-23 07:33:28.000000000 -0700


*** 283,290 ****
--- 283,291 ----
DEBUG_LOG("sd", "disconnect server:", hctx->fd);
fdevent_event_del(hctx->srv->ev, &(hctx->fd_idx), hctx->fd);
fdevent_unregister(hctx->srv->ev, hctx->fd);
mod_websocket_tcp_server_disconnect(hctx->fd);

  •     hctx->srv->cur_fds--;
      hctx->fd = -1;
    
    }
    }
@ghost ghost assigned nori0428 Aug 23, 2011
nori0428 added a commit that referenced this issue Aug 23, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants