Last post Jul 16, 2013 04:11 AM by Amy Peng - MSFT
Jul 11, 2013 09:38 AM|vaibahvvjy|LINK
I have created a server and deployed it on web server. There is problem with server internet connection so it is giving request timeout 4-5 time in an hour.On service i am having 2 operation one is Socket.Send and another is Socket.receive.the later one
is on a backgorund thread and is a blocking socket.
At the time of request timeout my socket.receive giving an exception
when i m handling this and thrwoing to client i found that client is disconnected.So my receive thread is stopped working now and Send is working fine.Can anyone tell me the way how to handle that exception so that my receive thread will not killed.And i
got the response from receive.
web service asmx
Jul 16, 2013 04:11 AM|Amy Peng - MSFT|LINK
When it accour the WSACancelBlockingCall exception, it may bacuase serverSocket is being closed from another thread.
For more information, please try to refer to:
Hope it can help you.