Bug #38
Connection reset by peer
| Status: | New | Start: | 03/01/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | - |
Description
This happned just after fetching the number of spams to learn:
Traceback (most recent call last):
File ".isbg.py", line 442, in <module>
body = getmessage(u)
File ".isbg.py", line 369, in getmessage
res = imap.uid("FETCH", uid, "(RFC822)")
File "/usr/lib/python2.6/imaplib.py", line 753, in uid
typ, dat = self._simple_command(name, command, *args)
File "/usr/lib/python2.6/imaplib.py", line 1058, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/usr/lib/python2.6/imaplib.py", line 888, in _command_complete
typ, data = self._get_tagged_response(tag)
File "/usr/lib/python2.6/imaplib.py", line 989, in _get_taged_response
self._get_responce()
File "/usr/lib/python2.6/imaplib.py", line 951, in _get_response
data = self.read(size)
File "/usr/lib/python2.6/imaplib.py", line 235, in read
return self.file.read(size)
File "/usr/lib/python2.6/socket.py", line 353, in read
data = self._sock.recv(left)
socket.error: [Errno 104] Connection reset by peer
History
Updated by Anders Jenbo over 2 years ago
I'm gussing pulling out your Internet cable while it is scanning will reproduce the result.
Updated by Anders Jenbo over 2 years ago
Pulling the cable just makes isbg hang.
I guess you have to reach the maximum connections for your imap server to get the error, maybe.
Updated by Thomas Lecavelier over 2 years ago
That's rather extreme as bug :)
'Think we can shield isbg counter that
Updated by Anders Jenbo over 2 years ago
Well when you have mulitple users using the same inbox simultaniusly i guess this issue is a bit more likly, i just got it again :(
This time i was in a terminal that allows me to copy the output so here is a copy past instead of a manual retyping:
Traceback (most recent call last):
File "/domains/isbg.py", line 442, in <module>
body = getmessage(u)
File "/domains/isbg.py", line 369, in getmessage
res = imap.uid("FETCH", uid, "(RFC822)")
File "/usr/lib/python2.6/imaplib.py", line 753, in uid
typ, dat = self._simple_command(name, command, *args)
File "/usr/lib/python2.6/imaplib.py", line 1058, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/usr/lib/python2.6/imaplib.py", line 888, in _command_complete
typ, data = self._get_tagged_response(tag)
File "/usr/lib/python2.6/imaplib.py", line 989, in _get_tagged_response
self._get_response()
File "/usr/lib/python2.6/imaplib.py", line 951, in _get_response
data = self.read(size)
File "/usr/lib/python2.6/imaplib.py", line 235, in read
return self.file.read(size)
File "/usr/lib/python2.6/socket.py", line 353, in read
data = self._sock.recv(left)
socket.error: [Errno 104] Connection reset by peer
it's a little disconcerning that the try: except: that i put in to workaround but #25 doesn't handle this as well.
Updated by Anders Jenbo over 2 years ago
Looks like there might be some help here:
http://www.jroller.com/RickHigh/entry/notes_on_creating_a_socket
It's all a bit hazy to me.