Browse Source

Fix: Read response exactly n bytes

main
nibrag 8 years ago
parent
commit
97c7b36f88
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      aiosocks/protocols.py

+ 1
- 1
aiosocks/protocols.py View File

@@ -150,7 +150,7 @@ class BaseSocksProtocol(asyncio.StreamReaderProtocol):

@asyncio.coroutine
def read_response(self, n):
return (yield from self._stream_reader.read(n))
return (yield from self._stream_reader.readexactly(n))

@asyncio.coroutine
def _get_dst_addr(self):


Loading…
Cancel
Save