I'm using Tornado as a proxy for HTTP(S) requests to other servers - essentially I've got one handler in my app:
This works great for HTTP requests, but over SSL requests made after the keep alive has expired result in an error:
HTTP 599: error:1408F06B:SSL routines:SSL3_GET_RECORD:bad decompression
I'm stumped! Why would the client to Tornado connection have any effect on how AsyncHTTPClient sets up its next request?
Restarting the server fixes the issue and I can catch the error ... so another solution may be to just bounce everything and ask the user to refresh (which is fine for my usage!)
How would you bounce a running server so it will drop all connections and start fresh?
I've tried an assorted combinations of stop / start with the server without much luck - it would seem calling stop / start would result in an assertion from the presence of socket on the server.