Skip Menu |

This queue is for tickets about the NNTPClient CPAN distribution.

Report information
The Basics
Id: 12448
Status: new
Priority: 0/
Queue: NNTPClient

People
Owner: Nobody in particular
Requestors: christopher [...] pobox.com
Cc:
AdminCc:

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



Subject: Fails to connect under Win32 (XP)
I'm using: perl, v5.8.3 built for MSWin32-x86-multi-thread Connections simply hang forever I've verified that I can telnet out to the news server OK my "perl" executables are not firewalled. Are you using non-blocking sockets? If so, there's plenty of known problems with these things on win32 (which I know how to fix if this turns out to be the prob) C:\Web\NNTP>perl news.pl News::NNTPClient::SOCK1 connecting to freenews.iinet.net.au:119 Terminating on signal SIGINT(2) C:\Web\NNTP>type news.pl #!perl use strict; use News::NNTPClient; my($server)='news.iinet.net.au'; my $c = new News::NNTPClient($server,119,2); print "Got $c\n"; C:\Web\NNTP>telnet freenews.iinet.net.au 119 200 per-qv1-newsreader-01.iinet.net.au NNRP Service Ready - support@iinet.net.au (posting ok). QUIT 205 Transferred 96 bytes in 0 articles, 0 groups. Disconnecting. Connection to host lost.
From: christopher [...] pobox.com
[guest - Thu Apr 28 10:07:04 2005]: Seems the problem is here (note what I commented out) - my replacement seemed to work (although I doubt it's a functionally useful alternative for you) - so I guess there's some kind of screwup relating to ends of lines or something? NNTPClient.pm approx line 666 warn "resp1\n"; sysread($SOCK,$_,32700); # $_ = <$SOCK>; warn "resp2\n"
From: christopher [...] pobox.com
also hangs here too (line 556). my syswrite overcame that hang too, but it then hung up again elsewhere still...:- warn "p1"; syswrite($SOCK,$cmd); # print $SOCK $cmd; warn "p2"; }
Date: Thu, 28 Apr 2005 17:55:06 -0600
From: "Rodger V. Anderson" <rva [...] rmci.net>
To: bug-NNTPClient [...] rt.cpan.org
Subject: Re: [cpan #12448] Fails to connect under Win32 (XP)
RT-Send-Cc:
Guest via RT wrote: Show quoted text
>This message about NNTPClient was sent to you by guest <> via rt.cpan.org > >Full context and any attached attachments can be found at: ><URL: https://rt.cpan.org/Ticket/Display.html?id=12448 > > >also hangs here too (line 556). my syswrite overcame that hang too, >but it then hung up again elsewhere still...:- > >warn "p1"; > syswrite($SOCK,$cmd); > # print $SOCK $cmd; >warn "p2"; >} > > >
Got your three messages. I don't know much about sockets on win32. I do know that you are the first to report any problems with this. Since NNTPClient is so old, I presume that it works for most people. It looks like you found a work-around using sysread/syswrite. I don't know why that should make any difference. You may take a look at other NNTP perl module, I believe it is part of the Net package. It may be more up-to-date anyway. Rodger