Files
oxy/utils
ArchisandGitHub 4e4fad5610 Implement http.CloseNotifier in the ResponseWriter implementations (#54)
Ever since I implemented chunked encoding/streaming,
the possibility of long-polling also brings with it
the risk that a client connection may have been closed
during the poll.

Fortunately, go's http.Server has the ability to close
the reverse-proxied connections (technically cancel the
http.Handler it calls out to.)

For this to happen, we have to pass-through the
http.CloseNotifier interface downstream to the listener.

That is what this change does. This is no different
from how the http.Flusher is implemented
in both the BufferWriter and ProxyWriter.
2016-10-26 07:28:19 -07:00
..
2014-12-16 11:21:21 -08:00
2014-12-16 11:21:21 -08:00
2015-02-10 14:23:13 +01:00
2014-12-12 22:54:43 -08:00