Skip to content

Commit 8f5944a

Browse files
tim-hanssentransistive
authored andcommitted
Update BoltConnectionPool.php
Removed `$socket->connect();` On line 109 the function `authenticateBolt` is called that calls the Bolt function `init`. `Init` does the also a `$socket->connect();` and overrides the existing PHP TCP Stream resource. The lost (overwritten) resource is never closed, resulting in an warning of `a not nicley closed connection`. `WARN [o.n.b.t.TransportSelectionHandler] Fatal error occurred when initialising pipeline, remote peer unexpectedly closed connection`.
1 parent 4a00900 commit 8f5944a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Bolt/BoltConnectionPool.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public function acquire(
105105
static function () use ($socket, $authenticate, $connectingTo, $userAgent, $originalBolt) {
106106
$bolt = $originalBolt->get();
107107
if ($bolt === null) {
108-
$socket->connect();
109108
$bolt = new Bolt($socket);
110109
$authenticate->authenticateBolt($bolt, $connectingTo, $userAgent);
111110
}

0 commit comments

Comments
 (0)