Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

calling tcpC.File() causes the socket to become blocking which causes…

… go to create threads for every read or write, it also appears to break hot restart
  • Loading branch information...
commit aa907709eaa4833238692e7103c14147f1096032 1 parent 016d5e4
Scott White authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  server_notwindows.go
View
1  server_notwindows.go
@@ -38,6 +38,7 @@ func (srv *Server) cycleNonBlock(c net.Conn) {
c.Write([]byte{})
// Re-enable TCP_CORK/TCP_NOPUSH
syscall.SetsockoptInt(fd, syscall.IPPROTO_TCP, srv.sockOpt, 1)
+ syscall.SetNonblock(fd, true)
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.