This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: smtplib.py socket.create_connection() also doesn't handle EINTR properly
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: socket.create_connection() doesn't handle EINTR properly
View: 20611
Assigned To: Nosy List: flox, gregory.p.smith, meishao, neologix, pitrou, tholzer, vstinner
Priority: normal Keywords:

Created on 2014-05-29 05:44 by meishao, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg219334 - (view) Author: Syou Ei (meishao) * Date: 2014-05-29 05:44
The smtplib.py also has the same problem.
The EINTR cannot be handled properly.

2014-05-21 19:20:15,631 ERROR actions: Notification 'socket_noti' FAILED to send emails to set(['mailtest@tscoss.com']): <class 'socket.error'> - [Errno 4] Interrupted system calltrace:Traceback (most recent call last):
  File "Utils.py", line 719, in sendEmail
    server = smtplib.SMTP(host, port, timeout=DEFAULT_SOCKET_TIMEOUT)
  File "/opt/zenoss/lib/python2.7/smtplib.py", line 242, in __init__
    (code, msg) = self.connect(host, port)
  File "/opt/zenoss/lib/python2.7/smtplib.py", line 302, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/opt/zenoss/lib/python2.7/smtplib.py", line 277, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/opt/zenoss/lib/python2.7/Write failed: Broken pipecreate_connection
msg219339 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2014-05-29 07:43
If you know it's a duplicate, why create a new issue?
History
Date User Action Args
2022-04-11 14:58:04adminsetgithub: 65801
2014-05-29 07:43:30neologixsetstatus: open -> closed
superseder: socket.create_connection() doesn't handle EINTR properly
resolution: duplicate
messages: + msg219339
2014-05-29 05:44:38meishaocreate