Skip Menu |
 

This queue is for tickets about the POE-Component-Client-NNTP CPAN distribution.

Report information
The Basics
Id: 55899
Status: open
Priority: 0/
Queue: POE-Component-Client-NNTP

People
Owner: Nobody in particular
Requestors: ryanchan404 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>
Download (untitled) / with headers
text/plain 478b
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)
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #55899] Infinite wait when network disconnected, not socket error occur
Date: Mon, 29 Mar 2010 16:28:32 +0100
To: Ryan Chan via RT <bug-POE-Component-Client-NNTP [...] rt.cpan.org>
From: "Chris 'BinGOs' Williams" <chris [...] bingosnet.co.uk>
On Wed, Mar 24, 2010 at 10:57:28AM -0400, Ryan Chan via RT wrote: Show quoted text
> > 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) >
You really should be getting a socket error event at some point. I can't really test this currently ( ie. disabling the network ). If you could enable the POE tracing whilst running the script and send me the results ( bingos@cpan.org ), that would be great. to enable POE tracing just set the POE_TRACE_DEFAULT environment variable. It'll spew a load of output to stderr as I recall. Many thanks. -- Chris Williams aka BinGOs PGP ID 0x4658671F http://www.gumbynet.org.uk ==========================
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #55899] Infinite wait when network disconnected, not socket error occur
Date: Tue, 6 Apr 2010 13:42:28 +0800
To: bug-POE-Component-Client-NNTP [...] rt.cpan.org
From: Ryan Chan <ryanchan404 [...] gmail.com>
Download (untitled) / with headers
text/plain 378b
Hello, On Mon, Mar 29, 2010 at 11:28 PM, chris@bingosnet.co.uk via RT <bug-POE-Component-Client-NNTP@rt.cpan.org> wrote: Show quoted text
> If you could enable the POE tracing whilst running the script and > send me the results ( bingos@cpan.org ), that would be great.
I have sent the debug log to bingos@cpan.org, please let me know if you haven't receive it so I can send again. Thanks.
Download (untitled) / with headers
text/plain 430b
Hi, I've just uploaded version 2.18 of the module to CPAN. It now has a TimeOut option to spawn() so that one may specify a delay, in seconds, between sending a command to the server and receiving a response. If no response is received within the timeout then the connection to the server is terminated and a 'nntp_disconnected' event will be triggered. Hope this helps and sorry about the delay (no pun intended). Cheers.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.