forked from External/ergo
eliminate dedicated RunSocketWriter goroutine
This commit is contained in:
parent
73613679af
commit
b2f798cf03
2 changed files with 58 additions and 40 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue