- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tcp keep alive
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
08-21-2003 12:14 PM
08-21-2003 12:14 PM
The problem is that I am using a propriatary piece of software and can't modify the code. So, how do I tell the socket to utilize the tcp_keepalive_interval and start sending keepalive packets???? Any thoughts would be welcomed.
Thanks,
Brian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 12:19 PM
08-21-2003 12:19 PM
Re: tcp keep alive
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 09:01 PM
08-21-2003 09:01 PM
Re: tcp keep alive
If the firewall is ignoring the "ndd", why not just set up a cron job to send a couple of "pings" every twenty or so minutes and that will force the firewall to reset its keepalive counters.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 05:07 AM
08-22-2003 05:07 AM
Re: tcp keep alive
Thanks for the ping idea. I have a few similar work arounds, but would much rather take advantage of the integrated tcp driver functionality. Hey HP... how about extending ndd to turn on the SO_KEEPALIVE bit!
-Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 08:53 AM
08-22-2003 08:53 AM
SolutionI suspect the firewall is doing stateful stuff on a connection by connection basis, so simply pinging the remote IP address, while a good idea, is unlikely to keep the individual connection going.
So, getting the application modified is the way to go. The _best_ modification would be for the application to use its own application-level keepalives and not rely on the TCP stack. That would be the most portable way to go as it would not rely on being able to alter TCP/IP settings, which as you have seen here is not always possible. Having the application make the setsockopt() call for SO_KEEPALIVE is only second best.
If there is a way to induce the client-end of the application to do some operataion that is essentially a noop or at least "safe" (say like an ls in and ftp or telnet session) you might try that.
If you are _really_ confident in your abilities to write code, you could in theory write a "shim library" that intercepted say calls to connect() or accept() and added a call to setsockop(). You would then have to LD_PRELOAD this library into your application.
Again, that is not for the programming faint of heart. And, it would be at the 10th best option at best. I suppose you could contract to HP Services to have them write one for you if the need were really pressing.