socket: Very initial SendQ limit

This commit is contained in:
Daniel Oaks
2017-03-14 08:12:39 +10:00
parent de4db1c6ef
commit f29a5f0e70
5 changed files with 44 additions and 2 deletions
+1 -1
View File
@@ -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,