Questions tagged [tcp-keepalive]

50 questions
17
votes
1 answer

How long can a TCP connection stay open?

Consider such a scenario, there are client-a and server-b. server-b has TCP keepalive disabled. And server-b does not have any application logic to check whether a TCP connection is open. client-a establishes a TCP connection to server-b. There is…
Jingguo Yao
  • 7,320
  • 6
  • 50
  • 63
10
votes
2 answers

What is the typical usage of TCP keepalive?

Consider a scenario where exists one server and multiple clients. And each client creates TCP connections to interact with the server. There are three usages of TCP alive: Server-side keepalive: The server sends TCP keepalive to make sure that the…
Jingguo Yao
  • 7,320
  • 6
  • 50
  • 63
5
votes
4 answers

How to set TCP keep Alive from HttpClient?

My Java application which resides in AWS private subnet connects to an http server via AWS Nat gateway. I am calling a POST request via HttpClient to the HTTP server. That request will take more than 10 minutes to complete. I have configured a…
Syam S
  • 123
  • 1
  • 1
  • 11
3
votes
2 answers

How to find out whether a particular endpoint has keepalive enabled in Spring Boot?

I have a Spring Boot application with several endpoints declared like this: @RestController public class MyRestController { @PostMapping("/someRequest") public void doSomething(final @RequestBody MyRequest request) { // ... …
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
3
votes
1 answer

Postgres's tcp_keepalives_idle Not Updating AWS ELB Idle Timeout

I have an Amazon ELB in front of Postgres. This is for Kubernetes-related reasons, see this question. I'm trying to work around the maximum AWS ELB Idle Timeout limit of 1 hour so I can have clients that can execute long-running transactions without…
Lee Hampton
  • 410
  • 5
  • 13
3
votes
1 answer

Configuring keep-alive timeout in Elasticsearch server

I was wondering if Elasticsearch provides a way of configuring a keep-alive timeout. I can see that this page describes a network.tcp.keep_alive TCP setting that can be used to enable TCP Keep Alive. I'm searching for a way in Elasticsearch to…
divesh premdeep
  • 1,070
  • 3
  • 16
  • 28
3
votes
1 answer

Google Cloud VM instance SSH connection ~60 seconds timeout with 30 second keepalive

I've been connecting to a Google Cloud VM instance via gcloud ssh from my macOS: $ gcloud compute ssh [username]@[instance] Starting from a week ago, the connection will just drop after ~60 seconds of idle connection and returns: Connection to…
3
votes
1 answer

Rabbit MQ idle connection dropped

I have a .NET windows service running as a consumer/subscriber which is listening to a queue for messages. The windows service is running on the same machine as where rabbit mq server s/w is installed. The queue if idle for 60 minutes results in the…
2
votes
1 answer

How to change a Kubernetes pod tcp_keepalive

I would like to change the default tcp keep alive value in a Kubernetes pod, what's the recommended approach?
Conundrum
  • 43
  • 1
  • 6
2
votes
1 answer

How do connections recycle in a multiprocess pool serving requests from a single requests.Session object in python?

Below is the complete code simplified for the question. ids_to_check returns a list of ids. For my testing, I used a list of 13 random strings. #!/usr/bin/env python3 import time from multiprocessing.dummy import Pool as ThreadPool, current_process…
2
votes
2 answers

send keep alive on long asynchronous request in spring server

I have a controller in spring which getting a POST request which is handling as asynchronous(using DeferredResult object as a return value). The response for this request is writing bytes to the HTTP stream directly…
Rotem ben
  • 156
  • 2
  • 13
2
votes
1 answer

Understanding keepalive between client and cockroachdb with haproxy

We are facing a problem where our client lets name it A. Is attempting to connect DB server (Cockroach) name B load balanced via ha-proxy A < -- > haproxy < -- > B Now at every, while our client A is receiving Broken Pipe error. But I'm not able…
Noobie
  • 461
  • 1
  • 12
  • 34
2
votes
1 answer

Why does NEST include TCP keep alive?

I noticed NEST has the ability to set TCP keep alive. What problem is this trying to solve? I thought http keep alive should be enough, which is implemented by default in NEST's internal connection pooling? Can someone please shed light on the…
RPM1984
  • 72,246
  • 58
  • 225
  • 350
2
votes
2 answers

What's the proper heartbeat/keep-alive technology/layer for Java REST? Http? Tcp? Encoding: chunked?

The setup: We have an https://Main.externaldomain/xmlservlet site, which is authenticating/validating/geo-locating and proxy-ing (slightly modified) requests to http://London04.internaldomain/xmlservlet for example. There's no direct access to…
Vlad
  • 1,157
  • 8
  • 15
2
votes
0 answers

TCP Keep Alive in windows is running but the program is not affected for Azure SQL

To keep Azure SQL alive MS have provided this workaround , After following this workaround the keep alive messages are sent I traced over wireshark . But still my application is facing Connection Reset after 30 minutes .. I have made a normal…
1
2 3 4