Webservice Exception Handling while Server request timeout RRS feed

  • Question

  • User719557214 posted

    hi ,

    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

    WSACancelBlockingCall 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.

    Thursday, July 11, 2013 9:38 AM