[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] HTTP "UPGRADE" header / switching protocol
From: |
Bertrand Baudet |
Subject: |
Re: [libmicrohttpd] HTTP "UPGRADE" header / switching protocol |
Date: |
Tue, 14 Aug 2012 17:14:52 +0200 |
Hi,
Attached is a small patch to provide 'Connection: Upgrade' capability, with an attempt to do a test with curl.
The test is not fully functional since there are some issues with the use of curl:
* if the HTTP response code is '101' curl_perform will fail. I didn't look at curl source to understand why...
is not really easy. You end up reading the FD you just wrote at the same end of the connection and no data are read.
Anyway, I have done another sample test and the tcpdump capture looks OK.
Regards,
Bertrand
2012/8/8 Christian Grothoff
<address@hidden>
Short answer: nothing has happened since. IIRC the proposed API still had some issues (but I don't recall which ones right now), and nothing has been implemented by me (and I have received no patches or specific feedback on the API). It's still on my agenda, but I'm currently focused on other issues...
Happy hacking,
Christian
On 08/08/2012 05:29 PM, Bertrand Baudet wrote:
Hello,
I found a thread regarding this subject on Mon Jan 23, 2012: 'Websockets'.
At this time an API for the upgrade mechanisms was proposed and it seems present in SVN, but '#if 0'.
I'm interesting in using a protocol switch (not for websocket) and I would like to know if more have been done on this subject?
Regards,
Bertrand
mhd_upgrade.patch
Description: Binary data
daemontest_upgrade.c
Description: Text Data