Message13106

Author shane
Recipients shane
Date 2020-07-15.01:36:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594776990.34.0.961755459204.issue2900@roundup.psfhosted.org>
In-reply-to
Content
Calling poll() on a SSLSocket registered with POLLHUP causes the following AttributeError: 'SSLSocket' object has no attribute 'channel'

  File "pymongo/socket_checker.py", line 57, in select
    res = self._poller.poll(timeout * 1000)
  File "/usr/local/Cellar/jython/2.7.2/libexec/Lib/_socket.py", line 592, in poll
    result = self._handle_poll(partial(self.queue.poll, timeout_in_ns, TimeUnit.NANOSECONDS))
  File "/usr/local/Cellar/jython/2.7.2/libexec/Lib/_socket.py", line 541, in _event_test
    fd, event = self._event_test(notification)
  File "/usr/local/Cellar/jython/2.7.2/libexec/Lib/_socket.py", line 541, in _event_test
    if mask & POLLHUP and (notification.hangup or not notification.sock.channel):
AttributeError: 'SSLSocket' object has no attribute 'channel'

I can reproduce this bug with Jython 2.7.0+2.7.1+2.7.2.
History
Date User Action Args
2020-07-15 01:36:30shanesetrecipients: + shane
2020-07-15 01:36:30shanesetmessageid: <1594776990.34.0.961755459204.issue2900@roundup.psfhosted.org>
2020-07-15 01:36:30shanelinkissue2900 messages
2020-07-15 01:36:30shanecreate