Hi Ilya, this has been fixed in trunk and the 1.4 branch.
Thanks for you report, Niels. On Nov 16, 2007 3:52 PM, Niels Provos <[EMAIL PROTECTED]> wrote: > Hi Ilya, > > thanks for the report. I filed a bug for it and will get back to you > when I am back from vacation. You can track the progress at: > > > https://sourceforge.net/tracker/index.php?func=detail&aid=1833446&group_id=50884&atid=461322 > > Niels. > > > On Nov 15, 2007 9:49 AM, Ilya Martynov <[EMAIL PROTECTED]> wrote: > > Hi, > > > > It seems that libevent incorrectly handles case when HTTP server wants > > to send HTTP response with empty content. The problem is that libevent > > doesn't generate Content-Length header in this case what causes HTTP1.1 > > clients to hang until it timeouts. The problem seems to be in the code > > in evhttp_make_header_response(). > > > > Basically it looks like: > > > > static void > > evhttp_make_header_response(struct evhttp_connection *evcon, > > struct evhttp_request *req) > > { > > ... > > if (EVBUFFER_LENGTH(req->output_buffer)) { > > ... > > code to generate headers Data, Content-Type and > > Content-Length if they are not present already > > ... > > } > > ... > > } > > > > This looks wrong maybe except for Content-Type header. Why doesn't it > > generates these headers if buffer length is 0? Missing Date header is > > not critical but missing Content-Length header definitely breaks HTTP > > clients. > > > > -- > > Ilya Martynov, [EMAIL PROTECTED] > > CTO IPonWEB (UK) Ltd > > _______________________________________________ > > Libevent-users mailing list > > Libevent-users@monkey.org > > http://monkeymail.org/mailman/listinfo/libevent-users > > > > > _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users