froodley
Active member
- Joined
- Apr 20, 2010
- Messages
- 26
- Programming Experience
- 1-3
Hi, all,
I use a web service to access our internal databases. The problem I'm having is that a call to the service is part of my application startup, and when the computer is offline or the server is otherwise unreachable, the DNS call is taking much too long to timeout. I would like to set the value to 2 seconds.
Setting it for the Soap service just sets the timeout for service operations; it doesn't effect the HttpWebRequest object... but that object is being created by the SOAP client, and I don't see that I have access to it to set its timeout.
Is there a simple way to get a quick timeout here?
I use a web service to access our internal databases. The problem I'm having is that a call to the service is part of my application startup, and when the computer is offline or the server is otherwise unreachable, the DNS call is taking much too long to timeout. I would like to set the value to 2 seconds.
Setting it for the Soap service just sets the timeout for service operations; it doesn't effect the HttpWebRequest object... but that object is being created by the SOAP client, and I don't see that I have access to it to set its timeout.
Is there a simple way to get a quick timeout here?