Python Socket.recv/sendall Call Blocking
This post is incorrectly tagged 'send' since I cannot create new tags. I have a very basic question about this simple echo server. Here are some code snippets. client while True:
Solution 1:
More like, the sendall()
call does nothing (since there's no data to send), and thus the recv()
call on the client blocks waiting for data, but since nothing was sent to the server, the server never sends any data back since it's also blocked on its initial recv()
, and thus both processes are blocked.
Post a Comment for "Python Socket.recv/sendall Call Blocking"