You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.
Hello,
As i am using HOA in bref's AWS Lambda Layer, i am getting to an error that stream_socket_recvfrom is returning false on /hoa/socket/Connection/Connection.php .
The same request can randomly do that, and when it does, it never recovers.
I've got some pretty similar issue when dealing with the WebSocket implementation (but not in Lambda context).
I have old PR #53 related, but dunno if that can solve your issue, it's been almost 3 years i've change that.
ping @Hywan Socket/WebSocket really need some focus for php7.1+ migration
Kinda, if the blocked mode are enabled, i'm reading in loop until buffer end or false return. (and use fread instead if encrypted mode enable)
In your side you should be able to implement re-connection, read instead of end up with error.
Hello,
As i am using HOA in bref's AWS Lambda Layer, i am getting to an error that
stream_socket_recvfrom
is returning false on/hoa/socket/Connection/Connection.php .
The same request can randomly do that, and when it does, it never recovers.
I've found this thread from 2011: https://bugs.php.net/bug.php?id=55814
it is from Ivan from Hoa Project :)
There it is saying that if we set the
stream_set_blocking($client, true);
it should work.I did that and edited the part that deals with this on our case:
And still is returning us false, and all subsequent requests also return false.
The client is reporting to still be connected even with the falses, and write is returning the correct number of bytes written.
Maybe you have something that i didn't think of?
Thanks
The text was updated successfully, but these errors were encountered: