reuse connections if possible
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m47s

This commit is contained in:
matst80
2024-11-09 23:10:36 +01:00
parent 5dc1662968
commit 90a45c10ca

View File

@@ -106,7 +106,8 @@ func NewSyncedPool(local *GrainLocalPool, hostname string, d Discovery) (*Synced
log.Printf("Error accepting connection: %v\n", err) log.Printf("Error accepting connection: %v\n", err)
continue 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) go pool.handleConnection(conn)
} }
}() }()