reuse connections if possible
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m47s
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m47s
This commit is contained in:
@@ -106,7 +106,8 @@ func NewSyncedPool(local *GrainLocalPool, hostname string, d Discovery) (*Synced
|
||||
log.Printf("Error accepting connection: %v\n", err)
|
||||
continue
|
||||
}
|
||||
log.Printf("Got connection from %s", conn.RemoteAddr().String())
|
||||
log.Printf("Got connection from %s", conn.RemoteAddr().Network())
|
||||
pool.AddRemoteWithConnection(conn.RemoteAddr().Network(), conn)
|
||||
go pool.handleConnection(conn)
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user