mirror of
https://github.com/golang/go
synced 2024-11-27 04:41:33 -07:00
fff236e659
There was a race condition that could lead to child.serveRequest
removing the request ID before child.handleRequest had read the empty
FCGI_STDIN message that indicates end-of-stream which in turn could
lead to child.serveRequest blocking while trying to consume the
request body.
Now, we remove the request ID from within child.handleRequest after
the end of stdin has been detected, eliminating the race condition.
Since there are no more concurrent modifications/accesses
to child.requests, we remove the accompanying sync.Mutex.
Change-Id: I80c68e65904a988dfa9e3cceec1829496628ff34
GitHub-Last-Rev:
|
||
---|---|---|
.. | ||
cgi | ||
cookiejar | ||
fcgi | ||
httptest | ||
httptrace | ||
httputil | ||
internal | ||
pprof | ||
testdata | ||
alpn_test.go | ||
client_test.go | ||
client.go | ||
clientserver_test.go | ||
clone.go | ||
cookie_test.go | ||
cookie.go | ||
doc.go | ||
example_filesystem_test.go | ||
example_handle_test.go | ||
example_test.go | ||
export_test.go | ||
filetransport_test.go | ||
filetransport.go | ||
fs_test.go | ||
fs.go | ||
h2_bundle.go | ||
header_test.go | ||
header.go | ||
http_test.go | ||
http.go | ||
jar.go | ||
main_test.go | ||
method.go | ||
omithttp2.go | ||
proxy_test.go | ||
range_test.go | ||
readrequest_test.go | ||
request_test.go | ||
request.go | ||
requestwrite_test.go | ||
response_test.go | ||
response.go | ||
responsewrite_test.go | ||
roundtrip_js.go | ||
roundtrip.go | ||
serve_test.go | ||
server_test.go | ||
server.go | ||
sniff_test.go | ||
sniff.go | ||
socks_bundle.go | ||
status.go | ||
transfer_test.go | ||
transfer.go | ||
transport_internal_test.go | ||
transport_test.go | ||
transport.go | ||
triv.go |