cgxxv/phpnsq

stream_select failed, fclose() supplied resource is not a valid stream source in Tunnel.php

Closed this issue · 2 comments

When consumer exit with exception, i found pfsockopen produced unexpected behavior when send new message to nsq in consumer context. Change pfsockopen to fsockopen, it works correct. My code depends on old version 1.0.1 (with composer install),can't upgrade new version because php runtime version, and can't send pull request to your project based version 1.0.1, can you help me to fix it?

Change fpsockopen to fsockopen in src/phpnsq/Utility/Stream.php on tag 1.0.1 and then tag it 1.0.2 .
image

Thank you !

Sorry for the late reply, please check 1.0.2.

Thank u, it's working. @wk30