Django Interrupted system call when sending email

Posted by mhost on Stack Overflow See other posts from Stack Overflow or by mhost
Published on 2010-05-21T21:06:10Z Indexed on 2010/05/21 21:10 UTC
Read the original article Hit count: 228

Filed under:
|

Hi,

Sometimes, when submitting a form (pretty much any form on my site that sends me an email), I get the following error:

File "/usr/lib/python2.5/smtplib.py", line 603, in starttls
   (resp, reply) = self.docmd("STARTTLS")

 File "/usr/lib/python2.5/smtplib.py", line 378, in docmd
   return self.getreply()

 File "/usr/lib/python2.5/smtplib.py", line 352, in getreply
   line = self.file.readline()

 File "/usr/lib/python2.5/socket.py", line 381, in readline
   data = self._sock.recv(self._rbufsize)

error: (4, 'Interrupted system call')

My code is sending email via gmail. I am also using django contact-form which does the same thing.

The problem doesn't always happen. It seems very random. At one point today it got so bad that it displayed the error every time I submitted a form.

Restarting apache fixes the problem for one submission and then it does it again.

I have checked the RAM and there is plenty available (about 350MB available).

Can someone lead me in the right direction? What does this error mean? What can I do to prevent this.

Thanks.

© Stack Overflow or respective owner

Related posts about django

Related posts about error