Subject: | Infinite wait when network disconnected, not socket error occur |
Date: | Wed, 24 Mar 2010 22:57:15 +0800 |
To: | bug-POE-Component-Client-NNTP [...] rt.cpan.org |
From: | Ryan Chan <ryanchan404 [...] gmail.com> |
Hi,
Thanks for your great module, it is really cool.
However, I experienced a problem - the event loop is waiting
infinitely when network disconnected.
Code: http://pastebin.com/nXjDRk9H
You can see, I put a line: system(" sudo /etc/init.d/networking stop
"); in the code, so to simulate network disconnected.
I found no way to escape from this timeout, is it possible to specify
a max. timeout so my program won't be waiting forever?
(Quite from event loop is ok for me)