Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket.error: [Errno 22] Invalid argument #1

Open
putro opened this issue May 5, 2014 · 1 comment
Open

socket.error: [Errno 22] Invalid argument #1

putro opened this issue May 5, 2014 · 1 comment

Comments

@putro
Copy link

putro commented May 5, 2014

sometimes aam2mail stops working, here's the traceback:
Traceback (most recent call last):
File "/usr/local/bin/aam2mail", line 408, in
daemon.run()
File "/usr/local/bin/aam2mail", line 35, in run
aam.main()
File "/usr/local/bin/aam2mail", line 337, in main
self.news = nntplib.NNTP(server, readermode=True)
File "/usr/lib/python2.7/nntplib.py", line 125, in init
self.welcome = self.shortcmd('mode reader')
File "/usr/lib/python2.7/nntplib.py", line 259, in shortcmd
return self.getresp()
File "/usr/lib/python2.7/nntplib.py", line 214, in getresp
resp = self.getline()
File "/usr/lib/python2.7/nntplib.py", line 203, in getline
line = self.file.readline()
File "/usr/lib/python2.7/socket.py", line 447, in readline
data = self._sock.recv(self._rbufsize)
socket.error: [Errno 22] Invalid argument

for what I understand it's a socket (so communication related ?) error, but I've not
problem with connection. If I restart it, it has no problem.
Nothing is logged (I see the traceback in console).

@crooks
Copy link
Owner

crooks commented May 6, 2014

Hi,

Thanks for the report.
I've added a trap for socket.error exceptions. Please can you try it out and let me know if it fixes your problem?

Steve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants