mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-18 05:28:11 -07:00
socket: Very initial SendQ limit
This commit is contained in:
+1
-1
@@ -74,7 +74,7 @@ type Client struct {
|
||||
// NewClient returns a client with all the appropriate info setup.
|
||||
func NewClient(server *Server, conn net.Conn, isTLS bool) *Client {
|
||||
now := time.Now()
|
||||
socket := NewSocket(conn)
|
||||
socket := NewSocket(conn, server.MaxSendQBytes)
|
||||
go socket.RunSocketWriter()
|
||||
client := &Client{
|
||||
atime: now,
|
||||
|
||||
Reference in New Issue
Block a user