Skip to content

Commit

Permalink
Add SSL transport fix (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaramallion authored Aug 22, 2020
1 parent 457fccd commit a5cb64b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Release Notes
.. toctree::
:maxdepth: 1

v1.5.3
v1.5.2
v1.5.1
v1.5.0
Expand Down
10 changes: 10 additions & 0 deletions docs/changelog/v1.5.3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _v1.5.3:

1.5.3
=====

Fixes
.....

* Fixed not processing multiple PDUs received when acting as the association
requestor with SSL/TLS (:pr:`528`)
2 changes: 1 addition & 1 deletion pynetdicom/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import re


__version__ = '1.5.2'
__version__ = '1.5.3'


VERSION_PATTERN = r"""
Expand Down
5 changes: 5 additions & 0 deletions pynetdicom/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ def ready(self):
self.event_queue.put('Evt17')
return False

# An SSLSocket may have buffered data available that `select`
# is unaware of - see #528
if _HAS_SSL and isinstance(self.socket, ssl.SSLSocket):
return bool(ready) or bool(self.socket.pending())

return bool(ready)

def recv(self, nr_bytes):
Expand Down

0 comments on commit a5cb64b

Please sign in to comment.