Oops, fixed one more bug
This commit is contained in:
@ -423,6 +423,9 @@ class Socket:
|
||||
if bufsize < -1:
|
||||
raise ValueError('bufsize must be >= -1 for packets')
|
||||
(data, addr) = self.sessobj.recv(timeout, peek)
|
||||
if bufsize == -1:
|
||||
return (data, addr)
|
||||
else:
|
||||
return (data[:bufsize], addr)
|
||||
|
||||
def send(self, string, flags=0):
|
||||
|
Reference in New Issue
Block a user