We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5385ebe commit 58ce0beCopy full SHA for 58ce0be
uvloop/sslproto.pyx
@@ -350,6 +350,9 @@ cdef class SSLProtocol:
350
self._transport = None
351
self._app_transport = None
352
self._app_protocol = None
353
+ self._app_protocol_get_buffer = None
354
+ self._app_protocol_data_received = None
355
+ self._app_protocol_buffer_updated = None
356
self._wakeup_waiter(exc)
357
358
if self._shutdown_timeout_handle:
@@ -860,6 +863,8 @@ cdef class SSLProtocol:
860
863
elif first_chunk is not None:
861
864
self._app_protocol_data_received(first_chunk)
862
865
866
+ # SSLObject.read() may return 0 instead of throwing SSLWantReadError
867
+ # This indicates that we reached EOF
868
if bytes_read == 0:
869
# close_notify
870
self._call_eof_received()
0 commit comments