Solved

Connection and Command timeouts

Posted on 2003-12-11
7
273 Views
Last Modified: 2013-11-13
What should you really set these at?  If you set them at 0 what will this do?  I am seeing program is not responding at times through Task Manager and I want to alleviate this as much as possible.

0
Comment
Question by:sjmmajor
  • 3
  • 3
7 Comments
 
LVL 14

Expert Comment

by:ajexpert
ID: 9920407
If you set them to 0 it means that timeout is set to infinite.  In other words connection will not be timedout.
0
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 150 total points
ID: 9920765
The task manager classifies an application as "Not Responding" after a period of 5 seconds without a response.  If you are comfortable with a connection/command timeout of less than that, then you can prevent your application from showing as "hung".

Idle_Mind
0
 

Author Comment

by:sjmmajor
ID: 9921243
Thanks for the quick response.  What would be the norm for timouts?  
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 9921448
I don't think there is a "norm" or standard for timeouts.  Microsoft sets some of theirs at 60 seconds.  I am usually too impatient to wait that long.  In my apps I have used between 15 and 30 seconds.

Idle_Mind
0
 

Author Comment

by:sjmmajor
ID: 9921899
Maybe what I should be asking is what exactly does these timeouts do?
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 9921942
For example, if you have a winsock control and send some data with:

Winsock1.SendData "some data"

It will generate an Error Event with the sckTimedout flag after the timeout period has expired and the control was unable to send the data to the recipient in that time period.

Idle_Mind
0
 

Author Comment

by:sjmmajor
ID: 9922001
Thanks for the info.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupNoAdj 7 95
groupSum5 challenge 5 84
VBS file using code from 2nd file (txt or vbs) 4 36
Error when passing an argument to a vb6 that contains  '/' 7 36
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now