[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] http client core dump when server is suddenly closed
- To: libevent-users@xxxxxxxxxxxxx
- Subject: [Libevent-users] http client core dump when server is suddenly closed
- From: Yee Keat Phuah <ykphuah@xxxxxxxxx>
- Date: Thu, 26 Aug 2010 11:33:03 +0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Wed, 25 Aug 2010 23:33:08 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=2kXNV7tcjV1AN3kYywAQJ9d7FH1E4efmaOvAwon2bbU=; b=pmyAPsShuoDWDp6tLCFg8TI8rYaLXYIZ+eedBqTDC0OFCWwIfzCp96/zu0wQC5I4im c+tegIAu5Ra/RJNuRtJ0lBkoujc7JWqFY7mZabQ7s5el544qrexaZQ4/PDkx2BIDUaTf ejQux35hbnY3Yio6fAYMGXGfWnOGFkaS7PZvU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=QAz1SDn3YmTmqLQ80mwzjXxnLoXdo4yk32Pa7Dq24uxQRAEmUD4na7PGCOBDbcWxCH Hc2ZHYaCl0gDiEjJPpOFaKxuXH2OWl+sJxZMexg2ijbvDnkkgca074/rFV5gwFnXOIlu qofV80zERt2XOBKQmJ/RmNWqaX5HCXM6rnOJw=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
I am using the http module in libevent-2.0.6rc for both the clients and the server, and I am testing the case where the client is rigourously sending things over to the server and the server exits abruptly halfway, current I get a core dump on the client, and traced to the line in http.c:1153
EVUTIL_ASSERT(evcon->state == EVCON_IDLE);
I have added debugging statements and found that the state is actually 3 (EVCON_READING_FIRSTLINE)
I assume this is a valid condition where the connection is closed when the client is reading stuffs from the server? I have removed this assert from http.c and it seems to work as expected.
Cheers,
Phuah Yee Keat