We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de3b615 commit 1b4af3cCopy full SHA for 1b4af3c
buffer.pyx
@@ -253,6 +253,17 @@ cdef class ReadBuffer:
253
254
if not cpython.PyBytes_CheckExact(data):
255
raise exceptions.BufferError('feed_data: bytes object expected')
256
+
257
+ # Uncomment the below code to test code paths that
258
+ # read single int/str/bytes sequences are split over
259
+ # multiple received buffers.
260
+ #
261
+ # ll = 107
262
+ # if len(data) > ll:
263
+ # self.feed_data(data[:ll])
264
+ # self.feed_data(data[ll:])
265
+ # return
266
267
data_bytes = <bytes>data
268
269
dlen = cpython.Py_SIZE(data_bytes)
0 commit comments