Re: PoCo::Net::OSCAR -- solved!

2003-08-24 Thread Rocco Caputo
On Sat, Aug 23, 2003 at 04:04:26PM -0400, Dan McCormick wrote: [...] Furthermore, tracing through POE's guts, when we call $kernel-select($socket) in rd_ok or wr_ok with an invalid socket, it ends up at _data_handle_remove, in which the second line that calls fileno($handle) returns undef.

Re: PoCo::Net::OSCAR -- solved!

2003-08-23 Thread Dan McCormick
On Fri, 2003-08-22 at 17:38, Rocco Caputo wrote: On Fri, Aug 22, 2003 at 03:09:59PM -0400, Dan McCormick wrote: [...] fileno() returning undef is a great way to check for a closed file. Your problem is you're ignoring it. Try this instead: unless (defined fileno $handle) {