Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
deleted 4 characters in body
Source Link
AJ.
  • 2.6k
  • 10
  • 49
  • 85

I am using stream_select() but it returns 0 number of descriptors after few seconds and my function while there is still data to be read.

An unusual thing though is that if you set the time out as 0 then I always get the number of descriptors as zero.

$num = stream_select($read, NULL$w, NULL$e, 0); 

I am using stream_select() but it returns 0 number of descriptors after few seconds and my function while there is still data to be read.

An unusual thing though is that if you set the time out as 0 then I always get the number of descriptors as zero.

$num = stream_select($read, NULL, NULL, 0); 

I am using stream_select() but it returns 0 number of descriptors after few seconds and my function while there is still data to be read.

An unusual thing though is that if you set the time out as 0 then I always get the number of descriptors as zero.

$num = stream_select($read, $w, $e, 0); 
Source Link
AJ.
  • 2.6k
  • 10
  • 49
  • 85

issue with stream_select() in PHP

I am using stream_select() but it returns 0 number of descriptors after few seconds and my function while there is still data to be read.

An unusual thing though is that if you set the time out as 0 then I always get the number of descriptors as zero.

$num = stream_select($read, NULL, NULL, 0);