1
0
Fork 0
forked from External/ergo

eliminate dedicated RunSocketWriter goroutine

This commit is contained in:
Shivaram Lingamneni 2018-04-13 15:47:57 -04:00
parent 73613679af
commit b2f798cf03
2 changed files with 58 additions and 40 deletions

View file

@ -90,7 +90,6 @@ func NewClient(server *Server, conn net.Conn, isTLS bool) *Client {
limits := server.Limits()
fullLineLenLimit := limits.LineLen.Tags + limits.LineLen.Rest
socket := NewSocket(conn, fullLineLenLimit*2, server.MaxSendQBytes())
go socket.RunSocketWriter()
client := &Client{
atime: now,
authorized: server.Password() == nil,