]> Cypherpunks repositories - gostls13.git/commit
net/http/fcgi: Fix resource leaks
authorEvan Kroske <evankroske@google.com>
Sun, 21 Dec 2014 17:25:12 +0000 (09:25 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 19 Jan 2015 22:54:54 +0000 (22:54 +0000)
commit68b78b8abd86c1586f240870161d020b8e32bac9
tree99ad52e2e3fd82e581eb33ef776e3052d031b615
parent9ccbd027dd070921ac1799bde5df044e50e33a99
net/http/fcgi: Fix resource leaks

Close the pipe for the body of a request when it is aborted and close
all pipes when child.serve terminates.

Fixes #6934

Change-Id: I1c5e7d2116e1ff106f11a1ef8e99bf70cf04162a
Reviewed-on: https://go-review.googlesource.com/1923
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/fcgi/child.go
src/net/http/fcgi/fcgi_test.go