What happens if a client connected through a Socket has a bad lag ?
Let's say i call socket.read() from the TCP server, and the client writes some stuff on the network pipe, but his connection is laging for 1 or 2 minutes. What will happen ? Will the read fail ? Or will it wait ?
I'm not sure if it's even possible, but i'm playing online chess on FICS server and sometimes it seems to happen from my point of view (I'm only a user of this chess server).
I'm asking this because i'm working on an online game and i'd like to handle such cases one way or another. But first I need to know if:
- it can happen
- it can be detected
Thanks