You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
We also know that each time self._bytes_in_buffer increases, the increment is less than _buffer_size - _buffer_end. An example:
if (self._remaining_capacity>self._bytes_in_bufferandshould_read):
count=self._sck.recv_into(self._buffer_view[self._buffer_end:])
ifnotcountandamt>self._bytes_in_buffer:
raiseConnectionResetError()
self._bytes_in_buffer+=count# count cannot be greater than _buffer_size - _buffer_end
Now we have two formulas:
_buffer_size - _buffer_end = _remaing_capacity - _bytes_in_buffer ①
count < _buffer_size - _buffer_end ②
Thus _bytes_in_buffer < _remaing_capacity is always True.
I intended to remove the check and run tests, but unfortunately I was not able to finish them(I have all the test deps installed and run make test, don't know why it takes so long). So I'm not 100% sure it can be removed.