Project

General

Profile

[OLD] in CON_STATE_HANDLE_REQUEST connection events are not posted to connection_handle_fdevent

Added by pradeep.labheswar almost 5 years ago

In lighttpd 1.4.44, when the request is in CON_STATE_HANDLE_REQUEST and a FIN is received, lighttpd is in CLOSE_WAIT STATE until a response is sent by mod_xxx plugin.

I don't see connection_handle_fdevent being hit when FIN is received.

Is this the expected behavior or am I missing something here?

error log for reference:

2018-06-22 09:30:22: (log.c.217) server started
2018-06-22 09:31:28: (connections.c.1144) state at start 43 req-start
2018-06-22 09:31:28: (connections.c.1154) state for fd 43 req-start
2018-06-22 09:31:28: (connections.c.1154) state for fd 43 read
2018-06-22 09:31:28: (connections.c.1154) state for fd 43 req-end
2018-06-22 09:31:28: (connections.c.1154) state for fd 43 handle-req
2018-06-22 09:31:28: (response.c.261) run condition
2018-06-22 09:31:28: (configfile-glue.c.694) === start of condition block ===
2018-06-22 09:31:28: (configfile-glue.c.557) SERVER["socket"] ( :8081 ) compare to :8081
2018-06-22 09:31:28: (configfile-glue.c.615) 1 (uncached) result: true
2018-06-22 09:31:28: (response.c.350) -- splitting Request-URI
2018-06-22 09:31:28: (response.c.351) Request-URI : /asdasd
2018-06-22 09:31:28: (response.c.352) URI-scheme : http
2018-06-22 09:31:28: (response.c.353) URI-authority : 127.0.0.1:8081
2018-06-22 09:31:28: (response.c.354) URI-path (raw) : /asdasd
2018-06-22 09:31:28: (response.c.355) URI-path (clean): /asdasd
2018-06-22 09:31:28: (response.c.356) URI-query :
2018-06-22 09:31:28: (configfile-glue.c.694) === start of condition block ===
2018-06-22 09:31:28: (configfile-glue.c.622) 1 (cached) result: true
2018-06-22 09:31:28: (configfile-glue.c.694) === start of condition block ===
2018-06-22 09:31:28: (configfile-glue.c.622) 1 (cached) result: true
2018-06-22 09:31:28: (mod_access.c.148) -- mod_access_uri_handler called
2018-06-22 09:31:28: (configfile-glue.c.694) === start of condition block ===
2018-06-22 09:31:28: (configfile-glue.c.622) 1 (cached) result: true
2018-06-22 09:31:28: (response.c.490) -- before doc_root
2018-06-22 09:31:28: (response.c.491) Doc-Root : /usr/IMS/www/htdocs/
2018-06-22 09:31:28: (response.c.492) Rel-Path : /asdasd
2018-06-22 09:31:28: (response.c.493) Path :
2018-06-22 09:31:28: (response.c.542) -- after doc_root
2018-06-22 09:31:28: (response.c.543) Doc-Root : /usr/IMS/www/htdocs/
2018-06-22 09:31:28: (response.c.544) Rel-Path : /asdasd
2018-06-22 09:31:28: (response.c.545) Path : /usr/IMS/www/htdocs/asdasd
2018-06-22 09:31:28: (response.c.562) -- logical -> physical
2018-06-22 09:31:28: (response.c.563) Doc-Root : /usr/IMS/www/htdocs/
2018-06-22 09:31:28: (response.c.564) Basedir : /usr/IMS/www/htdocs/
2018-06-22 09:31:28: (response.c.565) Rel-Path : /asdasd
2018-06-22 09:31:28: (response.c.566) Path : /usr/IMS/www/htdocs/asdasd
2018-06-22 09:31:28: (connections.c.1394) state at exit: 43 handle-req
2018-06-22 09:31:28: (connections.c.1144) state at start 43 handle-req
2018-06-22 09:31:28: (connections.c.1154) state for fd 43 handle-req
2018-06-22 09:31:28: (connections.c.1394) state at exit: 43 handle-req

After this connection is hanged in CLOSE WAIT STATE


Replies (1)

RE: in CON_STATE_HANDLE_REQUEST connection events are not posted to connection_handle_fdevent - Added by gstrauss almost 5 years ago

lighttpd 1.4.44 was released over two and a half years ago. Latest lighttpd is lighttpd 1.4.54. You've missed 10 full releases. Please test with latest lighttpd. There have been about 800 commits since lighttpd 1.4.44. More than one of those commits say you're wasting your time troubleshooting lighttpd 1.4.44.

    (1-1/1)