Skip to content

Commit

Permalink
calling tcpC.File() causes the socket to become blocking which causes…
Browse files Browse the repository at this point in the history
… go to create threads for every read or write, it also appears to break hot restart
  • Loading branch information
Scott White committed Apr 22, 2013
1 parent 016d5e4 commit aa90770
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server_notwindows.go
Expand Up @@ -38,6 +38,7 @@ func (srv *Server) cycleNonBlock(c net.Conn) {
c.Write([]byte{}) c.Write([]byte{})
// Re-enable TCP_CORK/TCP_NOPUSH // Re-enable TCP_CORK/TCP_NOPUSH
syscall.SetsockoptInt(fd, syscall.IPPROTO_TCP, srv.sockOpt, 1) syscall.SetsockoptInt(fd, syscall.IPPROTO_TCP, srv.sockOpt, 1)
syscall.SetNonblock(fd, true)
} }
} }
} }
Expand Down

0 comments on commit aa90770

Please sign in to comment.