Skip to content

Commit 4af89eb

Browse files
committed
[amqp] Fixes high CPU consumption when basic get is used
- usleep 100ms was added
1 parent 35758c8 commit 4af89eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/amqp-ext/AmqpConsumer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ private function receiveBasicGet($timeout)
134134
if ($message = $this->receiveNoWait()) {
135135
return $message;
136136
}
137+
138+
usleep(100000); //100ms
137139
}
138140
}
139141

0 commit comments

Comments
 (0)