.net - Why does the exception thrown from Socket.Receive report an exception in my program when the server closed the connection? -



.net - Why does the exception thrown from Socket.Receive report an exception in my program when the server closed the connection? -

i have connection closing in server (another executable) using socket.close(). in client on socket.beginreceive(byte[] buffer, int32 offset, int32 size, socketflags socketflags, asynccallback callback, object state) phone call throws socketexception stating

an established connection aborted software in host machine

this gives me impression closing connection thread has blocked on socket.receive() or socket.endreceive(). have done incorrectly here?

have tested shutdown() before close() recommendation gracefuly closing socket on server side documented ? think graceful close should not cause client study connection aborted, should happen if connection reset (tcp rst).

.net sockets

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -