On Wed, Mar 18, 2015 at 8:07 AM, Jan Kaluža <[email protected]> wrote: > > I have no big knowledge of WebSockets, but it should be possible to detect > Switching Protocol header and return HTTP error if some error happens before > we switch to WebSocket. > > Would this be acceptable, or you think this empty reply is not worth fixing > this way?
The problem is that at this point (poll() loop), "101 Switching Protocol" is already sent to the backend, and hence the ap_proxy_pass_brigade() doing so in proxy_wstunnel_request() should already have failed with the correct status code returned to the handler. Why isn't that happening? > >> Regards, >> Yann. >>
