Login  
Search All Forums
Dart Home | PowerTCP Sockets for .NET | Custom Development Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
AuthorForum: PowerTCP Sockets for .NET (Secure and Standard)
Topic: Diagnosing timeouts
cambler

From: Redmond, WA USA
Posts: 102
Member Since: 04/14/03
posted July 16, 2003 1:37 PM

I have an application that opens many SSL connections to a remote server. I turn AutoReceive on, and do an async send, expecting to get some data back. My timeout is a mere 10000 (10 seconds).

Every now and again, 3 or 4 of my connections time out. EndReceive() is called with an exception loaded for the timeout. My current strategy is to just trap the exception, close down the socket, and do a BeginConnect() again. This tends to work fine.

What I'm wondering is, is there anything else I can be doing to diagnose these timeouts? Is there any other data available that might help me determine if it's simply a case of the remote not sending back to me, or if there is any other kind of network problem involved?

Thanks in advance!

Christopher
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted July 17, 2003 10:57 AM

Not that I can think of. What happens if you play around with the timeout value?

cambler

From: Redmond, WA USA
Posts: 102
Member Since: 04/14/03
posted July 17, 2003 12:24 PM

If a channel is going to time out, it's going to time out. As such, I set it at 10 seconds so that I don't sit around waiting. If I set it to 30 seconds, it still times out, but I sit around for 30 seconds waiting to be notified.

What I'm trying to do is figure out what I can do on my end to help diagnose why the remote system stops talking. It's not a Dart issue per se, but I'm looking for strategies to help diagnose what the remote is doing.

Is there an internal timer I can look at along the lines of "how long it's been since I've received data, and if this timer gets to your timeout value, I'm going to throw a timeout exception?"

Something I can watch for trends? Like seeing if the channel hiccups a bit before it times out?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted July 17, 2003 12:42 PM

I honestly can't think of anything that could help you. It's kind of hard to troubleshoot why a server does not send data back. I usually attribute it to load on the server. For example I have connected to FTP servers during times of stress and not received a greeting.

cambler

From: Redmond, WA USA
Posts: 102
Member Since: 04/14/03
posted July 17, 2003 12:48 PM

Yeah, it's a pain in the rear.

The less time we're not talking to the server, the better, and each time I have to take a non-responding channel down and bring it back up, we suffer a performance hit (for unrelated reasons), so I'm just trying to determine if there are things I can do on my end.

I'll keep hunting :-)
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX