[Mailman-Developers] [ mailman-Bugs-620033 ] gate_news should catch lost connection

noreply@sourceforge.net noreply@sourceforge.net
Tue Oct 22 16:19:29 2002


Bugs item #620033, was opened at 2002-10-08 02:07
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=620033&group_id=103

Category: nntp/news
Group: 2.1 beta
Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Ron Jarrell (jarrell)
Assigned to: Nobody/Anonymous (nobody)
Summary: gate_news should catch lost connection

Initial Comment:
Sep 20 10:51:35 2002 gate_news(9301): Traceback 
(most recent call last):
Sep 20 10:51:35 2002 gate_news(9301):   
File "/home/mailman/cron/gate_news", line 270, 
in ?
Sep 20 10:51:35 2002 gate_news(9301):      main()
Sep 20 10:51:35 2002 gate_news(9301):   
File "/home/mailman/cron/gate_news", line 250, in 
main
Sep 20 10:51:35 2002 gate_news(9301):      
process_lists(lock)
Sep 20 10:51:35 2002 gate_news(9301):   
File "/home/mailman/cron/gate_news", line 194, in 
process_lists
Sep 20 10:51:35 2002 gate_news(9301):      conn, 
first, last = open_newsgroup(mlist)
Sep 20 10:51:35 2002 gate_news(9301):   
File "/home/mailman/cron/gate_news", line 89, in 
open_newsgroup
Sep 20 10:51:35 2002 gate_news(9301):      
password=mm_cfg.NNTP_PASSWORD)
Sep 20 10:51:35 2002 gate_news(9301):   
File "/usr/local/lib/python2.2/nntplib.py", line 
117, in __init__
Sep 20 10:51:35 2002 gate_news(9301):      
self.welcome = self.getresp()
Sep 20 10:51:35 2002 gate_news(9301):   
File "/usr/local/lib/python2.2/nntplib.py", line 
203, in getresp
Sep 20 10:51:35 2002 gate_news(9301):      resp = 
self.getline()
Sep 20 10:51:35 2002 gate_news(9301):   
File "/usr/local/lib/python2.2/nntplib.py", line 
192, in getline
Sep 20 10:51:35 2002 gate_news(9301):      line = 
self.file.readline()
Sep 20 10:51:35 2002 gate_news(9301): IOError :  
[Errno 131] Connection reset by peer 


----------------------------------------------------------------------

>Comment By: Ron Jarrell (jarrell)
Date: 2002-10-22 15:19

Message:
Logged In: YES 
user_id=34619

Didn't work...  This comes up, btw, not during initial 
connection, but if the connection goes away during a 
gate_news run, like the daemon on the other end dies, 
or the news server reboots, etc.  You get an IOerror on 
the mailman side.

----------------------------------------------------------------------

Comment By: Barry A. Warsaw (bwarsaw)
Date: 2002-10-15 19:00

Message:
Logged In: YES 
user_id=12800

I'm applying this patch

----------------------------------------------------------------------

Comment By: Barry A. Warsaw (bwarsaw)
Date: 2002-10-15 18:19

Message:
Logged In: YES 
user_id=12800

I didn't realize that nntplib.NNTP() can raise an IOError --
I thought it would have been a socket.error.  Oh well,
here's an untested patch.  I think I'll check this in just
because I don't see how it could break anything.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=620033&group_id=103