Questions tagged [keepalive]

120 questions
3
votes
1 answer

How does apache handles connections and requests using worker and prefork mpm modules?

I know that prefork module in apache creates one master process and several child processes to handle connections, my question is: Does each prefork child handles one connection or handles one request per time? and if it handles one connection does…
Hussein Galal
  • 133
  • 1
  • 3
3
votes
1 answer

option http-server-close on HAProxy haproxy-1.5-dev19 will result in Connection: close header sent in response

I basically have the following issue: whenever I add option http-server-close to the haproxy config (either in frontend or backend section), haproxy will send a Connection: close header in the response - which is exactly the opposite of what is…
Bogdan Sorlea
  • 163
  • 2
  • 5
3
votes
3 answers

Proxy to keep connection to API alive

On one server I have some 30 PHP sites running under Apache. All those sites use the same (HTTP) API to fetch some data. The API is hosted elsewhere (under my control) The API uses Nginx with keep-alive and the PHP sites use CURL for making the API…
Ivor
  • 31
  • 1
  • 2
3
votes
1 answer

Nginx keepalive_requests - What value to use for unlimited?

We are using an nginx backend behind a nginx proxy. We use upstream keepalives. They work quite nicely. We were wondering, what value would we set keepalive_requests on the backend to set the maximum number of keepalive requests to…
anonymous-one
  • 958
  • 4
  • 26
  • 43
2
votes
0 answers

TCP KeepAlives with NAT?

We have a Network set up like this: MQTT Client -- TCP Forward (Netscaler) -- TLS Termination + TCP Forwarding (HAProxy) -- MQTT Server For several reasons we needed to turn on TCP KeepAlives in HAProxy, because the client has a huge timeout which…
peez80
  • 171
  • 5
2
votes
1 answer

AWS API Gateway with Lambda and KeepAlive (persistent connections)

I'm a bit confused about Keep-Alive with AWS API Gateway. Is this something I need to configure? or maybe be careful with this setting? Because I will use API Gateway to execute Lambda functions, and because Lambda price depends on the execution…
Enrique
  • 143
  • 1
  • 5
2
votes
1 answer

git push fails - permissions and ssh keep alive checked - what else?

I migrated my git server to a new server and now I try to push my data to the new one. Client: Windows, TortoiseGit Server: docker git-server The log when trying to push git.exe push --progress "originNew" master:master Counting objects: 26735,…
andymel
  • 201
  • 1
  • 2
  • 9
2
votes
1 answer

Why can't Nginx reuse connection to upstream while serving sequential requests from clients?

As mentioned in http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive It should be particularly noted that the keepalive directive does not limit the total number of connections to upstream servers that a Nginx worker process can…
Aarti
  • 629
  • 1
  • 7
  • 6
2
votes
0 answers

socket_keepalive configuration for mod_jk

I have Apache httpd with mod_jk. I have issue with killed connections after long idling period: Apache stops to respond and each HTTP request hangs for 15 minutes. I tried turn off mod_jk connection pooling (with DisableReuse) and the issue…
2
votes
1 answer

Linux GRE keep alive

What are possibilities in Linux kernel (?) to work with Cisco endpoint encorporating GRE keep-alives? We have GRE IPsec tunnel set up with another company. We would like to have backup tunnel which should be active when main one dies. So they enable…
unhit
  • 21
  • 3
2
votes
2 answers

KeepAlive in Apache 2.4 interfering with form submissions

I have just upgraded a server to Debian Jessie, which includes Apache 2.4.10 (was 2.2), and PHP 5.6. Now, SSL sites won't submit forms in some circumstances on IE11 and iPad Safari (not sure about desktop Safari). Firefox and Chrome are both OK.…
user1247280
  • 146
  • 1
  • 3
2
votes
0 answers

HAProxy resetting backend connections

I'm in the process of setting up a series of servers as proxies to our application server, primarily to obscure the application server's IP as part of a suite of anti-DDOS measures. My goal is to have HAProxy accept short-lived HTTP/1.0 connections…
Lachlan Pease
  • 121
  • 1
  • 1
  • 4
2
votes
1 answer

HTTP Keep-Alive puzzle with EC2 Linux, Nginx and Chrome

Please, help to solve HTTP keep-alive problem. Basically, I have amazon-ami linux (v2012.09) on EC2 running nginx (v1.2.6). Chrome (v25.0.1364.99) accesses HTTP page normally, then after about 30 seconds connection dropped (unknown why) as monitored…
2
votes
3 answers

mod_rewrite+proxy closes connections to backend (keepalive)

We have a fairly typical setup: client <-> apache2 (2.2.22) <-> backend (*). Initially we were using mod_rewrite with the [P] flag in the simplest form: RewriteEngine On ProxyPreserveHost On RewriteRule ^(.*)$…
adamw
  • 135
  • 1
  • 5
2
votes
1 answer

Does apaches keep alive time-out reset every time a request is received?

The title of this question is pretty self explanatory, but: Does apaches keep alive timeout reset (as in, start again) every time a request is received? So for example, assume we have a 60 second keep alive timeout: Second 0 - First request…
anonymous-one
  • 958
  • 4
  • 26
  • 43