Skip to content

Commit 41a1d24

Browse files
committed
style
1 parent 6e28c98 commit 41a1d24

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Client.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,22 +440,22 @@ public function call($method, $headers = [], $body = '')
440440
} catch (ConnectionFailure $e) {
441441
// Enhanced diagnostic for EAGAIN errors - check socket state when error occurs
442442
$lastSocketError = $this->socket ? socket_last_error($this->socket) : null;
443-
443+
444444
if ($lastSocketError === 11 && $this->socket) { // EAGAIN/EWOULDBLOCK
445445
$write = [$this->socket];
446446
$read = [];
447447
$except = [];
448448
$selectResult = @socket_select($read, $write, $except, 0, 0);
449449
$peerConnected = @socket_getpeername($this->socket, $peerHost, $peerPort);
450-
450+
451451
$this->logger->error('EAGAIN Error Diagnostic', [
452452
'host' => $hostName,
453453
'socket_ready_for_writing' => ($selectResult === 1 && !empty($write)) ? 'YES' : 'NO',
454454
'peer_connected' => $peerConnected ? 'YES' : 'NO',
455-
'pid' => getmypid()
455+
'pid' => getmypid(),
456456
]);
457457
}
458-
458+
459459
// The error happened during connection (or before we sent any data, or in a case where we know the
460460
// command was never processed) so we can retry it safely.
461461
$this->markHostAsFailed($hostName);

0 commit comments

Comments
 (0)