Skip to content

Commit bd380cb

Browse files
Merge pull request #1 from appwrite-labs/chore-remove-warning
refactor: temporarily disable heartbeat validation in SwooleIO constr…
2 parents 30d709d + f40e6b1 commit bd380cb

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)