On the basis of shutdown vs close I have known the difference between shutdown and close.
But which will choose if select timeout in socket, the client will close or shutdown(sock, SHUT_WR).
I try to read the source code of select.c, but it is too hard to read.
Can anyone give me some help.