The connection should remain open regardless but yes it’s often common to see protocols implement a heartbeat in order to help detect dead connections, IRC with the PING command for example.
More Related Contents:
- What does “connection reset by peer” mean?
- Can two applications listen to the same port?
- When is TCP option SO_LINGER (0) required?
- What do you use when you need reliable UDP?
- TCP: can two different sockets share a port?
- Differences between TCP sockets and web sockets, one more time [duplicate]
- Can TCP and UDP sockets use the same port?
- Go, tcp too many open files debug
- Detecting TCP Client Disconnect
- How many socket connections possible?
- Why is it impossible, without attempting I/O, to detect that TCP socket was gracefully closed by peer?
- How does the socket API accept() function work?
- Setting the source IP for a UDP socket
- Difference between socket and websocket?
- Linux: is there a read or recv from socket with timeout?
- Chrome hangs after certain amount of data transfered – waiting for available socket
- Python socket.accept nonblocking?
- Simple Socket Server in Bash?
- When should I use TCP_NODELAY and when TCP_CORK?
- Sending a file over TCP sockets in Python
- Socket Programming Python: How to make sure entire message is received?
- What is “backlog” in TCP connections?
- Sockets On Same Machine For Windows and Linux
- passing a struct over TCP (SOCK_STREAM) socket in C
- Spurious readiness notification for Select System call
- Get Length of Data Available in NetworkStream
- Java HttpURLConnection and pooling
- TCP server with multiple Clients
- Run a web socket on Cloud Functions for Firebase?
- What’s the difference between WebSocket and plain socket communication?