Commit 7326a389 authored by Brendan O'Dea's avatar Brendan O'Dea

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
parent ce9fbdbe
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment