Skip to content

Commit f40e6b1

Browse files
committed
refactor: temporarily disable heartbeat validation in SwooleIO constructor for future implementation
1 parent 30d709d commit f40e6b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PhpAmqpLib/Wire/IO/SwooleIO.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ public function __construct(
3434
$keepalive = false,
3535
$heartbeat = 0
3636
) {
37+
/*
38+
TODO FUTURE enable this check
3739
if ($heartbeat !== 0 && ($read_write_timeout < ($heartbeat * 2))) {
3840
throw new \InvalidArgumentException('read_write_timeout must be at least 2x the heartbeat');
3941
}
42+
*/
43+
4044
$this->host = $host;
4145
$this->port = $port;
4246
$this->connection_timeout = $connection_timeout;

0 commit comments

Comments
 (0)