Re: [PHP-DEV] Handling "Bad file descriptor" during stream_select()

2016-03-28 Thread Grzegorz Zdanowski
2016-03-28 11:19 GMT-05:00 Dan Ackroyd : > On 28 March 2016 at 02:57, Grzegorz Zdanowski wrote: >> by „gone away“ >> I mean some underlying error like forceful close of FD and not a >> standard disconnection >> of the client. > > What problem exactly are you trying to solve, and do you have a way

Re: [PHP-DEV] Handling "Bad file descriptor" during stream_select()

2016-03-28 Thread Dan Ackroyd
On 28 March 2016 at 02:57, Grzegorz Zdanowski wrote: > Hello! > > by „gone away“ > I mean some underlying error like forceful close of FD and not a > standard disconnection > of the client. What problem exactly are you trying to solve, and do you have a way of showing the problem that isn't just

[PHP-DEV] Handling "Bad file descriptor" during stream_select()

2016-03-27 Thread Grzegorz Zdanowski
Hello! During refactoring of one of my server projects written in PHP I was curious what PHP will do if one of FDs given to stream_select() will gone away. Of course by „gone away“ I mean some underlying error like forceful close of FD and not a standard disconnection of the client. I did some te