| 
      
      
      From: Shane H. <re...@bu...> - 2020-07-15 01:36:49
      
     | 
| 
New submission from Shane Harvey <sh...@gm...>:
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.
----------
messages: 13106
nosy: shane
severity: normal
status: open
title: poll + POLLHUP causes AttributeError: 'SSLSocket' object has no attribute 'channel'
versions: Jython 2.7, Jython 2.7.1, Jython 2.7.2
_______________________________________
Jython tracker <re...@bu...>
<https://bugs.jython.org/issue2900>
_______________________________________
 |