Actions
Bug #1084
closedconnections hangs (no timeout) on 'write-content' state
ASK QUESTIONS IN Forums:
Description
connections 'write-content' hangs
38.117.157.74 0/0 0/0 write-content 460 www.nnnnnnnn.com /flash/list.ini /www/pages/flash/list.ini
as you can see the connections is "active" and doing nothing... {{{0/0 read, 0/0 write...}}}
the problem is a 'ts' not initialized:
-> server.c int lighty_mainloop(server *srv) { .... case CON_STATE_WRITE_RESPONSE_CONTENT: if (con->write_request_ts != 0 && srv->cur_ts - con->write_request_ts > con->conf.max_write_idle) { /* time - out */ ..... 'write_request_ts' was never initialized, so always was 0
Initializing it per connection fix the problem:
-> connections.c int connection_state_machine(server *srv, connection *con) { .... case CON_STATE_WRITE_RESPONSE_HEADER: con->write_request_ts = srv->cur_ts; /* start a write-call() */ .... case CON_STATE_WRITE_RESPONSE_CONTENT: con->write_request_ts = srv->cur_ts; /* start a write-call() */ ...
Sorry for not passing a patch file, I'am using an old version (not svn)
and is really tweaked.
hope this helps.
-- ezm
Updated by jan over 17 years ago
- Status changed from Assigned to Fixed
- Resolution set to fixed
applied in r1788
Actions
Also available in: Atom