Skip to content

Commit a406dce

Browse files
committed
Add DTLS handshake to recv_into
1 parent dc49a53 commit a406dce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

wolfssl/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,8 @@ def recv_into(self, buffer, nbytes=None, flags=0):
676676
self._check_closed("read")
677677
if self._context.protocol < PROTOCOL_DTLSv1:
678678
self._check_connected()
679+
else:
680+
self.do_handshake()
679681

680682
if buffer is None:
681683
raise ValueError("buffer cannot be None")

0 commit comments

Comments
 (0)