Re: WaitFor and TimeoutException - WeOnlyDo Discussion board

Re: WaitFor and TimeoutException (General questions)

by wodSupport, Tuesday, December 20, 2005, 20:14 (6912 days ago) @ Scott Blomfield

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: