[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] Problems with change set 17892 (version 0.9.16)
From: |
address@hidden |
Subject: |
[libmicrohttpd] Problems with change set 17892 (version 0.9.16) |
Date: |
Fri, 11 Nov 2011 14:52:00 +0100 |
Hello together,
I observed after problems with libmicrohttpd after updating to 0.9.16.
The problems seem to be related to the patch 17892.
I have a small callback using the MHD_create_response_from_callback
with a unknown data size. In my tests, the frist call of the callback
method returns 4 (bytes). The second returns -1 (End of stream).
However, the libcurl-based client fails to accept the data with the
message "Failure when receiving data from the peer". MHD does not
issue and log statement.
Here is the different on the wire (wireshark):
This works (0.9.15):
HTTP/1 .1 200 OK..Transfer-Encoding: chunked..Content-Type:
text/plain. .Date: Fri, 11 Nov 2011 14:00:51 GMT....4..test..0....
This doesn't (0.9.16):
HTTP/1 .1 200 OK..Connection: close..Transfer-Encoding:
chunked..Content-Type: text/plain..Date: Fri, 11 Nov 2011 14:02 :28
GMT....4..test..0..Connection: close ....
I don't know if I use microhttpd or libcurl wrong or if the patch was
not totally correct. However, I think that "Connection: close" is a
HTTP header and should only be set before the contents. I had a quick
look on the source code, but I wasn't able to figure out where the
second "Connection:close" comes from.
Can anyone help here?
Greetings,
Dirk
P.S. Please keep me in CC for the discussion because I am not on the
mailinglist.
- [libmicrohttpd] Problems with change set 17892 (version 0.9.16),
address@hidden <=