Closed oqq closed 6 years ago
this line is 100% blocking, so the shutdown method is never called, unless the block has been removed (f.e. by timeout or message came in)
This is not true for the php-amqplib package.
See this File: https://github.com/php-amqplib/php-amqplib/blob/master/PhpAmqpLib/Wire/IO/StreamIO.php and search for canDispatchPcntlSignal
.
How I said, this package handles this behavior already like a charm by endless looping requests without blocking. My provided patch works exactly how it should without any script wrapper. Please test it by your own.
manually merged into master
The amqp extension + library has its own mechanism to remove blocking for requests, if the signal handler is activated.
But the cancelation for requests was not called from this library, so i have moved some code around to get rid of that issue: closes #45
I am not sure about side effects, so please have an extra review round. ;)