We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5757c9b commit 4110a7eCopy full SHA for 4110a7e
src/Remote/AMQP/Connector.php
@@ -62,7 +62,7 @@ public function connect(): AMQPChannel
62
/** @var AMQPStreamConnection $connection */
63
$connection = AMQPStreamConnection::create_connection($this->hosts, $this->options);
64
65
- if ($connection->getHeartbeat() > 0) {
+ if (PHP_SAPI === 'cli' && $connection->getHeartbeat() > 0) {
66
$this->heartbeats = match ($this->options['heartbeat_sender'] ?? null) {
67
'sig' => new Heartbeat\SIGHeartbeatSender($connection),
68
default => new Heartbeat\PCNTLHeartbeatSender($connection),
0 commit comments