我在客户端关闭时想捕获这个信息,但在客户端关闭时error却不是EWOULDBLOCK是怎么回事啊.谢谢!
Why would u expect this? It would be really interesting if you get this error when client disconnectted.
IMO, EWOULDBLOCK usually happens when client try to setup connection with non-blocking socket,which could be ignored safely