You're using blocking sockets, so read will not terminate until the connection is closed from the other end, or until 128 octets are read. I suppose the other side is sending data less than 128 octets ...
Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources. Vivek Yadav, an engineering manager from ...
I am a bit new to socket programming, but I am working on making a server for educational purposes. Everything works great, have multiple connections. The problem comes when I ctrl X one of the ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results