소스 검색

Fix patch to TorControl.py

svn:r4195
Nick Mathewson 20 년 전
부모
커밋
0b15170cf3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      contrib/TorControl.py

+ 1 - 1
contrib/TorControl.py

@@ -210,7 +210,7 @@ def _receive_msg(s):
   length,type = struct.unpack("!HH",header)
   if length:
     while length > len(body):
-      body += s.recv(length)
+      body += s.recv(length-len(body))
   return length,type,body
 
 def receive_message(s):