in reply to Error - A non-blocking socket operation could not be completed immediately.
A non-blocking socket operation could not be completed immediately.
The extended error suggests that an attempt to read from the socket has simply failed because there is not yet any data available. A common condition with non-blocking sockets.
That is -- and this is wild speculation -- the module has probably issued/sent the command to the server; and then entered a read loop in order to retrieve the output; but as the socket is non-blocking, instead of waiting for the output to be available, it is assuming the command has failed rather than retrying.
Just a guess, but one that fits the scenario.
Given that your code can do nothing else until it gets the output; why are you setting it non-blocking? Is the module designed to be used that way?
(Note: I've never used the module and know nothing about its internals or use. But maybe this speculation will help you?)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Error - A non-blocking socket operation could not be completed immediately.
by perl514 (Pilgrim) on Mar 06, 2013 at 17:08 UTC | |
by BrowserUk (Patriarch) on Mar 06, 2013 at 19:46 UTC |