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 }}
Repository navigation
The resource returned by stream_socket_accept may have incorrect metadata #8472
The problem lies within php_tcp_sockop_accept / php_openssl_tcp_sockop_accept which unconditionally inherits the properties from the server socket. I.e. if the server socket is non-blocking, the client socket will be marked non-blocking as well, without actually being non-blocking.
(This behaviour is different between Linux and Windows/BSD I believe? - according to my unscientific research Windows/BSD are actually inheriting the non-blockingness.)
Activity
bwoebi commentedon May 2, 2022
The problem lies within
php_tcp_sockop_accept/php_openssl_tcp_sockop_acceptwhich unconditionally inherits the properties from the server socket. I.e. if the server socket is non-blocking, the client socket will be marked non-blocking as well, without actually being non-blocking.(This behaviour is different between Linux and Windows/BSD I believe? - according to my unscientific research Windows/BSD are actually inheriting the non-blockingness.)