]> Cypherpunks repositories - gostls13.git/commit
net/http/fcgi: fix race in child.serve connection read
authorTzu-Chiao Yeh <su3g4284zo6y7@gmail.com>
Wed, 2 Sep 2020 02:53:39 +0000 (10:53 +0800)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Wed, 2 Sep 2020 10:07:50 +0000 (10:07 +0000)
commit7432bee7b372efbbd09b16c4e3176b69fbb6878a
treec28195df679526a523a7ea721326dbbc546703a1
parentb246c0e12fd41caf45a0f81eaa4f8fe249fbbc01
net/http/fcgi: fix race in child.serve connection read

Guards the connection read with a mutex, because typeStdin
asynchronously and concurrently writes to the underlying conn.

Fixes #41167

Change-Id: Ia2610f4fde0bd4b108c54164095ea293980b0301
Reviewed-on: https://go-review.googlesource.com/c/go/+/252417
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/net/http/fcgi/child.go