Solved

Connection and Command timeouts

Posted on 2003-12-11
7
289 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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!

 
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

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

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.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

749 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