Merge master

This commit is contained in:
Daniel Oaks
2017-03-24 12:29:13 +10:00
7 changed files with 123 additions and 17 deletions
+2 -1
View File
@@ -74,7 +74,8 @@ 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,
authorized: server.password == nil,