Re: WaitFor and TimeoutException (General questions)
I'm not sure I understand the problem completely. Yes, Timeout can expire in Waitfor method and that will trigger TimeoutException. What happens after that, hmm. Connection will remain, you can still send/receive, but it's very questionable how much that can help, since I would say you have your connection in unknown state. Since you didn't receive what you expected - what are you going to do now? How will you bail out of it and continue normally? How will you reach command prompt since you don't know what state you're in?
I would say it's better to disconnect and try again. Or, change logic of your application so timeout doesn't expire.
Hope I helped.
Complete thread:
- WaitFor and TimeoutException - Scott Blomfield, 2005-12-20, 19:49
- Re: WaitFor and TimeoutException - Scott Blomfield, 2005-12-20, 19:51
- Re: WaitFor and TimeoutException - wodSupport, 2005-12-20, 20:14
- Re: WaitFor and TimeoutException - Scott Blomfield, 2005-12-21, 21:10
- Re: WaitFor and TimeoutException - wodSupport, 2005-12-20, 20:14
- Re: WaitFor and TimeoutException - Scott Blomfield, 2005-12-20, 19:51