Skip to content

Commit a8c9fc1

Browse files
committed
PYTHON-4493 Remove broken SSL workaround in get_buffer
1 parent 95569ac commit a8c9fc1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pymongo/network_layer.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,6 @@ def get_buffer(self, sizehint: int) -> memoryview:
553553
If any data does not fit into the returned buffer, this method will be called again until
554554
either no data remains or an empty buffer is returned.
555555
"""
556-
# Check for SSL EOF edge case, no data will be written to the buffer we return
557-
# TODO: is this needed?
558-
if sizehint == 0:
559-
return memoryview(bytearray(16))
560556
# TODO: optimize this by caching pointers to the buffers.
561557
# return self._buffer[self._index:]
562558
if self._expecting_header:

0 commit comments

Comments
 (0)