Skip to content

Commit 62f97ed

Browse files
committed
Moving to AMQPRuntimeException
1 parent 4d3f510 commit 62f97ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PhpAmqpLib/Wire/IO/StreamIO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function read($len)
235235
if ($wait_buffer_count > self::READ_BUFFER_LIMIT) {
236236
// No bytes has been being read during READ_BUFFER_WAIT_INTERVAL * READ_BUFFER_LIMIT seconds.
237237
// We assume the connection hangs if the timeout is set.
238-
throw new AMQPTimeoutException('Too many read attempts detected in StreamIO');
238+
throw new AMQPRuntimeException('Too many read attempts detected in StreamIO');
239239
}
240240
$this->select(0, self::READ_BUFFER_WAIT_INTERVAL);
241241
pcntl_signal_dispatch();

0 commit comments

Comments
 (0)