Solved

Connection and Command timeouts

Posted on 2003-12-11
7
251 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for the quick response.  What would be the norm for timouts?  
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 85

Expert Comment

by:Mike Tomlinson
Comment Utility
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
Comment Utility
Maybe what I should be asking is what exactly does these timeouts do?
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
Comment Utility
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
Comment Utility
Thanks for the info.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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 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…

762 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

7 Experts available now in Live!

Get 1:1 Help Now