mirror of
https://github.com/golang/go.git
synced 2025-05-15 20:34:38 +00:00
Fix channels used by WaitWrite (http server hangs on writes
which hit EAGAIN). R=rsc APPROVED=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27955 CL=28054
This commit is contained in:
parent
ce9fbdbee0
commit
7326a389fc
@ -299,9 +299,9 @@ func (s *pollServer) WaitRead(fd *netFD) {
|
||||
}
|
||||
|
||||
func (s *pollServer) WaitWrite(fd *netFD) {
|
||||
s.cr <- fd;
|
||||
s.cw <- fd;
|
||||
s.Wakeup();
|
||||
<-fd.cr
|
||||
<-fd.cw
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user