Solved

Connection and Command timeouts

Posted on 2003-12-11
7
281 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

856 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