Entropy/Socket Interface:

- improve buffer handling reliability


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1993 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-05-27 13:42:02 +00:00
parent 0a4bb6ad20
commit 74e73c3550
+1 -1
View File
@@ -12090,7 +12090,7 @@ class SocketHostInterface:
self.data_counter -= len(data)
self.buffered_data += data
while self.data_counter > 0:
x += self.request.recv(4096)
x = self.request.recv(4096)
self.data_counter -= len(x)
self.buffered_data += x
self.data_counter = None