Questions tagged [tcp-keepalive]
50 questions
1
vote
0 answers
TCP KEEP ALIVE Ack not seen for some duration
I have a TCP application running on linux. I have SO_KEEPALIVE option set for my TCP connection.
Here are the my setting.
static const int KEEPALIVE_ENABLE = 1;
static const int KEEPALIVE_IDLE_TIME = 1; // 5s
static const int KEEPALIVE_INTERVAL = …

yash
- 47
- 5
1
vote
0 answers
lwIP TCP keepalive packets are not obeying the settings during cable disconnection
I have a Xilinx Zynq-based board with FreeRTOS running on it. Its EMAC is connected to a copper/fiber (unmanaged) switch (it's mounted on the board).
I use lwIP 2.02 in sockets mode.
The application running on the board is used as a TCP client. In…

user1001318
- 31
- 2
1
vote
0 answers
Why is throughput for a server a function of upstream response time?
I have an application server which does nothing but send requests to an upstream service, wait, and then respond to the client with data recieved from the upstream service. The microservice takes Xms to respond, or sometimes Yms, where X<

BullardLA
- 31
- 4
1
vote
2 answers
IPPROTO_TCP or SOL_SOCKET
I have a simple P2P connection between my peers on a TCP socket. My client and server both are running on Linux. I have turned on TCP keep_alive functionality on my TCP sockets on both sides. I am using boost::asio to connect, read ane write data on…

TheWaterProgrammer
- 7,055
- 12
- 70
- 159
1
vote
1 answer
How to use TCP keep_alive property to get notified on the event of a unresponsive peer?
Scenario:
I have a client and server written using boost::asio 1.63. Generally the connection and communication part works well and great.
I have written a Watchdog on both sides which send dummy packets to peers in an interval of 2 seconds each.…

AdeleGoldberg
- 1,289
- 3
- 12
- 28
1
vote
0 answers
How do you get notified about TCP Keepalives last probe?
I want to be able to detect if the connection between the client and the server is lost within a reasonable time on Linux with in C programming language. I did the following:
int flags = 1;
setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &flags,…

Sylvester
- 91
- 3
- 11
1
vote
0 answers
"notify" is not getting called in Keepalived
I have these setting in the keepalived.conf file but when I stop the HAProxy service it's not executing the notify script but when I restart the keepalived service it's getting executed every time. Here are the details,
HAProxy: 1.8.8
Keepalived:…

Rohan
- 477
- 7
- 22
1
vote
1 answer
why TCP keep-alive packet doesn't trigger I/O event? Is it because no payload or sequence number is 1 less than sequence number of connection
I want to let my application layer notified when my server received Keep Alive Packet. I am wondering what's the reason Keep Alive packet doesn't trigger I/O event. Is it because the TCP Keep Alive packet has no data or sequence number is 1 less…

user292048
- 15
- 6
1
vote
1 answer
Apache HttpClient - keepalive is ignored when using SSL or TLSv1.2
I am using Apache HttpClient 4.5 for my soap webservice.
Currently, I have encountered an issue where the keep alive in httpclient is ignored when TLSv1.2 is used. However, the keep alive is working if using HTTP.
Do you guys have some idea on…

obl0702
- 123
- 11
1
vote
1 answer
Datasnap Clients callback connection KeepAlive do not work
I followed the guide in Delphi Labs: Datasnap XE - Callbacks ,
Callbacks seems to work good. Yet, leaving the client sides idle for more than a hour -- seems to cause clients callbacks stop working. I changed the server…

B. Nighthawk
- 11
- 1
- 3
1
vote
0 answers
Cannot see retransmission packet from client to server
I have a custom client-server application both running on LAN(OS-Windows8). I used keep-alive option in the client and I see Keep alive packets in Wireshark. However, when I unplug the network cable of the machine the server is running on, I do not…

user2970559
- 11
- 1
0
votes
0 answers
How TCP KeepAlive packets trigger and transmitted
How does TCP KeepAlive packets gets generated from Windows Core 2019? What are the subscribers or listeners or the message?
It is clear Windows OS has KeepAlive registry at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\ that…

Wedi
- 1
0
votes
0 answers
Stunnel issue SSL_read: Connection reset by peer (WSAECONNRESET) (10054)
I have problems with stunnel on OS Windows.
After a successful connection with stunnel, the connection drops after approximately 9 minutes of inactivity.
On Linux, this problem was solved by changing this parametrs:
net.ipv4.tcp_keepalive_time =…
0
votes
2 answers
Identifying docker application tcp timeout value
I am looking for ways to identify the default timeout configured on our container application. For this I was trying the nc command
The application is running on a GCP VM host with a public IP as a docker container . The port I am trying to probe…

Zama Ques
- 1,497
- 5
- 26
- 45
0
votes
1 answer
Remote end closed connection without response for a python post request in apache airflow job
I am doing a python service call in the apache airflow job, the POST call is straight forward, but after 5 minutes , it fails with this error "Remote end closed connection without response".
res = requests.post(url, verify=False, auth=token) //The…

Deepak Kothari
- 1,601
- 24
- 31