[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] Server-Sent Events
From: |
Peter Ross |
Subject: |
[libmicrohttpd] Server-Sent Events |
Date: |
Mon, 23 May 2011 22:55:26 +1000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi,
Server-Sent Events (SSEs) are a form of 'push technology', where the server
leaves the connection open indefinitely, and sends response data to the
web-browser as those events happen.
Standard: http://www.w3.org/TR/eventsource/
Example: http://googlecodesamples.com/html5/sse/sse.html
Implementing events in the current release of MHD isn't very practical.
The only way it can be achieved is via MHD_create_response_from_callback,
where the reader callback blocks until an event is ready to be sent.
This only works with MHD_USE_THREAD_PER_CONNECTION.
How could the MHD library and API be improved to better handling of SSEs
and other streaming approaches. Has anyone else encountered this problem?
Cheers,
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
signature.asc
Description: Digital signature
- [libmicrohttpd] Server-Sent Events,
Peter Ross <=