[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Connection and Command timeouts

Posted on 2003-12-11
7
Medium Priority
?
302 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 86

Accepted Solution

by:
Mike Tomlinson earned 600 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 86

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 86

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month18 days, 10 hours left to enroll

834 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