Computer Science, asked by prishabh1074, 1 year ago

Write a client and server routines showing blocking i/o in unix

Answers

Answered by hafeezsahib12
0

When the TCP client is handling two inputs at the same time: standard input and a TCP socket, we encountered a problem when the client was blocked in a call to fgets (on standard input) and the server process was killed. The server TCP correctly sent a FIN to the client TCP, but since the client process was blocked reading from standard input, it never saw the EOF until it read from the socket (possibly much later).

Similar questions