- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Lost Connection Recognition
Operating System - Tru64 Unix
1754403
Members
3074
Online
108813
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2004 06:16 AM
тАО04-25-2004 06:16 AM
Our customer has a unreliable network, therefore our software has to rely an fast recognition, if tcp connections are lost. We found out that there are some parameters that can be configured using sysconfig:
tcp_keepalive_default=0
tcp_keepcnt=8
tcp_keepidle=14400
tcp_keepintvl=150
Question: Is there any reason why tcp_keepidle's default value is so high (14400 = 2 hours). Could we easily set this to 60 (which is 30 sec) or are there any risks breaking other software.
tcp_keepalive_default=0
tcp_keepcnt=8
tcp_keepidle=14400
tcp_keepintvl=150
Question: Is there any reason why tcp_keepidle's default value is so high (14400 = 2 hours). Could we easily set this to 60 (which is 30 sec) or are there any risks breaking other software.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2004 09:37 AM
тАО04-25-2004 09:37 AM
Re: Lost Connection Recognition
These parameters will only be honored if the application is programmed for.
The default timeout value is 2 hours but can be minimized depending on the network.
It would be better to improve the network instead of changing kernel parameters
The default timeout value is 2 hours but can be minimized depending on the network.
It would be better to improve the network instead of changing kernel parameters
Help() { FirstReadManual(urgently); Go_to_it;; }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2004 09:44 PM
тАО04-25-2004 09:44 PM
Re: Lost Connection Recognition
> These parameters will only be honored if the application is programmed for.
As far as i understand the man pages the tcp_keepalive_default enables this feature for ALL sockets. It doesn't matter, whether application uses setsockopt() to enable keep alive or not. Or am i wrong?
>It would be better to improve the network instead of changing kernel >parameters.
Unfortunatly its our customers network and we have no influence on this, they even do not have DNS for the computers in their network :(
As far as i understand the man pages the tcp_keepalive_default enables this feature for ALL sockets. It doesn't matter, whether application uses setsockopt() to enable keep alive or not. Or am i wrong?
>It would be better to improve the network instead of changing kernel >parameters.
Unfortunatly its our customers network and we have no influence on this, they even do not have DNS for the computers in their network :(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2004 10:20 PM
тАО04-25-2004 10:20 PM
Solution
The KEEPALIVE option causes the underlying TCP/IP implementation to regularly check the connection to make sure that the process on the other end of the socket is still there and responding. If it doesn't respond, the connection is broken and the client receives a SIGPIPE signal which causes it to exit.
But it is important, that the application can handle the signal and the case the socket will be closed.
The KEEPALIVE mechanism should prevent that sockets hang in TIME_WAIT state over a long time - nothing else!
If network quality is worse the keepalive (and normal) packets will be lost and socket will be closed to early....
So it is a bad idea to minimizes the intervalls in case of network problems!
But it is important, that the application can handle the signal and the case the socket will be closed.
The KEEPALIVE mechanism should prevent that sockets hang in TIME_WAIT state over a long time - nothing else!
If network quality is worse the keepalive (and normal) packets will be lost and socket will be closed to early....
So it is a bad idea to minimizes the intervalls in case of network problems!
Help() { FirstReadManual(urgently); Go_to_it;; }
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP