https://bz.apache.org/bugzilla/show_bug.cgi?id=69367
Bug ID: 69367
Summary: mod_cgi(d) does not support HTTP/2 server-sent events
in full duplex mode
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: mod_cgi
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
I am trying to get mod_cgid (or mod_cgi for that matter) to work with SSE in
HTTP/2, using fetch requests. I have a CGI program that sends messages to the
client, as well as poll'ing for input from the client.
I can get it to work by putting `cgi_handle_request` into a separate thread,
and joining it at the end of `cgid_handler` but I am confident that is the
wrong way to do it, though I can't find any actual issues with that.
If anyone is curious, you can use the following command to test a script that
is trying to do SSE:
for i in $(seq 5); do date; sleep 1; done | curl --noproxy '*' -H
"Transfer-Encoding: chunked" -H "Content-Type: text/event-stream" -X POST -T -
--trace-ascii - --http2 http://localhost/testapp/stream.cgi
I am very interested in getting full duplex fetches working on Apache 2.x at
some point, especially with mod_cgid. But, it doesn't look like that was
something explicitly intended by the creators of mod_cgi(d) originally.
I was wondering if there were any plans to support this the right way?
Possibly by merging cgi_handle_request and cgi_handle_response.
Charles
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]