mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 13:41:36 +00:00
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> (cherry picked from commit ec2289b2d9ac79fd5e0f69f56f023dfe8ee78bf8)