Skip to content

Instantly share code, notes, and snippets.

@nemith
Created May 16, 2016 08:34
Show Gist options
  • Select an option

  • Save nemith/2dd507d40ae9716c5fb16fa29b178880 to your computer and use it in GitHub Desktop.

Select an option

Save nemith/2dd507d40ae9716c5fb16fa29b178880 to your computer and use it in GitHub Desktop.
while True:
chunk = self.socket.recv(4096)
if not chunk:
break
buf += chunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment