[issue15470] Stuck/hang when reading ssl object

2012-07-27 Thread Seamus McKenna

New submission from Seamus McKenna :

My python scripting has been running for several weeks periodically sending out 
emails.  However the script has been stuck for the last 24 hrs.  No parts of my 
script have been executed in this period.

On terminating the script via ctrl-c, I can see that the script is stuck with 
the python ssl library. See below;

-
File 
"/export2/home/intregress/LabEnv210/lab/int_lib/int_tools/PTM_COMMON/user.py", 
line 4277, in email
mailServer.sendmail(gmail_user, to, msg.as_string())
  File "/tools/ACTIVESTATE/python/2.7.1.3/x86/lib/python2.7/smtplib.py", line 
713, in sendmail
(code,resp) = self.data(msg)
  File "/tools/ACTIVESTATE/python/2.7.1.3/x86/lib/python2.7/smtplib.py", line 
482, in data
(code,msg)=self.getreply()
  File "/tools/ACTIVESTATE/python/2.7.1.3/x86/lib/python2.7/smtplib.py", line 
338, in getreply
line = self.file.readline()
  File "/tools/ACTIVESTATE/python/2.7.1.3/x86/lib/python2.7/smtplib.py", line 
177, in readline
chr = self.sslobj.read(1)
  File "/tools/ACTIVESTATE/python/2.7.1.3/x86/lib/python2.7/ssl.py", line 138, 
in read
return self._sslobj.read(len)
---

--
components: None
messages: 166579
nosy: seamus.mckenna
priority: normal
severity: normal
status: open
title: Stuck/hang when reading ssl object
type: behavior
versions: Python 2.7

___
Python tracker 
<http://bugs.python.org/issue15470>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15470] Stuck/hang when reading ssl object

2012-07-30 Thread Seamus McKenna

Seamus McKenna added the comment:

Thankyou for update.  Script was not using 100% cpu. I will add SMTP timeout 
and increase debuglevel() within the function should this reoccur.

--
status: open -> closed

___
Python tracker 
<http://bugs.python.org/issue15470>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com