1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/server
Stephen J Day ec2289b2d9 Avoid panic on write after close in http
By adding a (*WriteFlusher).Close, we limit the Write calls to possibly
deallocated http response buffers to the lifetime of an http request.
Typically, this is seen as a very confusing panic, the cause is usually a
situation where an http.ResponseWriter is held after request completion. We
avoid the panic by disallowing further writes to the response writer after the
request is completed.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-11-02 18:14:43 -08:00
..
httputils Remove defensive check of mux vars handling. 2015-10-14 10:31:09 -07:00
router Avoid panic on write after close in http 2015-11-02 18:14:43 -08:00
middleware.go Revert "dockerversion placeholder for library-import" 2015-10-27 21:23:53 -04:00
middleware_test.go Separate API router from server. 2015-09-29 19:43:03 -04:00
profiler.go api/server fix golint errors/warnings. 2015-07-28 22:44:39 +00:00
server.go extract docker volume API from local 2015-10-27 17:28:19 -07:00
server_test.go Separate API router from server. 2015-09-29 19:43:03 -04:00
server_unix.go Refactor listenFD function 2015-10-07 14:26:48 -07:00
server_windows.go Allocate resources for server API before daemon creation 2015-10-05 09:32:08 -07:00