- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- TCP Connection Never Terminates
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
01-22-2003 02:25 PM
01-22-2003 02:25 PM
TCP Connection Never Terminates
We are implementing a Primary / Alternate Server system in C++ on HPUX-11. The two servers are connected via TCP. As part of our failover requirments we are supposed to be able to detect and recover from a broken ethernet cable. When we pull the cable on one of the machines effectively cutting it off from the network, we expected that our TCP socket connection would break. This is not what is happening. Unix "send" calls over the connection continue to return a success status. A unix "Receive" call continues to wait for something. A "netstat -a" command still shows the connection as being established. According to our system Admin, the network tuneables are set so that keep-alive should not be more than 6 seconds. What really puzzles me is the success returned from "Send". Any ideas what could be wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 02:36 PM
01-22-2003 02:36 PM
Re: TCP Connection Never Terminates
Take a look at Eran remarks(doc)
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 02:51 PM
01-22-2003 02:51 PM
Re: TCP Connection Never Terminates
I'm curious. It sounds like you are trying to duplicate some of the LAN failover switching abilities in MC/ServiceGuard. Are you writing software to handle a failover? Is MC/SG not an option? I hate to see you have to re-invent the wheel when MC/SG does such a good job of handling those issues already.
I think Robert-Jan was referring to the doc in this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xda90663ce855d511abcd0090277a778c,00.html
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 02:56 PM
01-22-2003 02:56 PM
Re: TCP Connection Never Terminates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 02:58 PM
01-22-2003 02:58 PM
Re: TCP Connection Never Terminates
Kind regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 03:11 PM
01-22-2003 03:11 PM
Re: TCP Connection Never Terminates
The info in that doc looks interesting. I will compare
the info in there against what the settings are on our
network.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 11:40 AM
01-23-2003 11:40 AM
Re: TCP Connection Never Terminates
A recv() call will _never_ terminate unless...
The TCP connection was also trying to send data - in which case the maximum retransmissions limits will be reached.
or
The application has set SO_KEEPALIVE with setsockopt() - in which case TCP will periodically send a "are you there" segment when the connection is idle (no outstanding data from that end)
If an application has particular requirements for detecting connection failure, it would be best for the application to run its own keepalives and timouts.
ftp://ftp.cup.hp.com/dist/networking/briefs/annotated_ndd.txt