rialto-php / rialto

Manage Node resources with PHP
MIT License
170 stars 80 forks source link

Failed to select socket for reading: Interrupted system call (SOCKET_EINTR) #26

Open RyanBlundell opened 4 years ago

RyanBlundell commented 4 years ago

Hi there,

I am running php-socket-raw via nesk/puphpeteer. I am often running into the following error. Do you have any idea what is causing it? I can't seem to find anyone else with this issue but it is happening on two of my servers.

PHP Fatal error: Uncaught Socket\\Raw\\Exception: Failed to select socket for reading: Interrupted system call (SOCKET_EINTR) in /var/www/html/vendor/clue/socket-raw/src/Exception.php:59\nStack trace:\n#0 /var/www/html/vendor/clue/socket-raw/src/Exception.php(45): Socket\\Raw\\Exception::createFromCode(4, 'Failed to selec...')\n#1 /var/www/html/vendor/clue/socket-raw/src/Socket.php(307): Socket\\Raw\\Exception::createFromGlobalSocketOperation('Failed to selec...')\n#2 /var/www/html/vendor/nesk/rialto/src/ProcessSupervisor.php(408): Socket\\Raw\\Socket->selectRead(30)\n#3 /var/www/html/vendor/nesk/rialto/src/ProcessSupervisor.php(382): Nesk\\Rialto\\ProcessSupervisor->readNextProcessValue(true)\n#4 /var/www/html/vendor/nesk/rialto/src/Traits/CommunicatesWithProcessSupervisor.php(84): Nesk\\Rialto\\ProcessSupervisor->executeInstruction(Object(Nesk\\Rialto\\Instruction))\n#5 /var/www/html/vendor/nesk/rialto/src/Traits/CommunicatesWithProcessSupervisor.php(100): Nesk\\Rialto\\AbstractEntryPoint->proxyAction('call', 'launch', Array)\n#6 /var/www/html/ind in /var/www/html/vendor/clue/socket-raw/src/Exception.php on line 59

I originally reported this to clue/socket-raw however they suggested that I report it downstream here: clue/php-socket-raw#52

vcjacks1224 commented 3 years ago

Do you guys have fix for this one? On local, it seems working, but on our server it throws the error..

vcjacks1224 commented 3 years ago

Hi @RyanBlundell did you find workaround fix for this?