gate_news should catch lost connection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
High
|
Unassigned |
Bug Description
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/
in ?
Sep 20 10:51:35 2002 gate_news(9301): main()
Sep 20 10:51:35 2002 gate_news(9301):
File "/home/
main
Sep 20 10:51:35 2002 gate_news(9301):
process_lists(lock)
Sep 20 10:51:35 2002 gate_news(9301):
File "/home/
process_lists
Sep 20 10:51:35 2002 gate_news(9301): conn,
first, last = open_newsgroup(
Sep 20 10:51:35 2002 gate_news(9301):
File "/home/
open_newsgroup
Sep 20 10:51:35 2002 gate_news(9301):
password=
Sep 20 10:51:35 2002 gate_news(9301):
File "/usr/local/
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/
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/
192, in getline
Sep 20 10:51:35 2002 gate_news(9301): line =
self.file.
Sep 20 10:51:35 2002 gate_news(9301): IOError :
[Errno 131] Connection reset by peer
[http://
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.