Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

TCP keepalive

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


evgeny at inovvia

May 15, 2012, 9:57 PM

Post #1 of 4 (392 views)
Permalink
TCP keepalive

Hi,

I am developing a new module on C.

In some cases, it takes to my module a long time to prepare a response (more than 2 minutes) and during this time a process handling this request is blocked.
In order to prevent a TCP connection disconnect a user sends his HTTP request with TCP keepalive flag on and also adds HTTP header "Connection: Keep-Alive".
But for some reason Apache doesn't sends back a response for TCP keepalive and it causes to TCP connection to disconnect.
TCP timeout is exactly 2 minutes.
I tried to call "ap_set_keepalive" function for current request but nothing happened.

How can I configure Apache to response to TCP keepalive flag?

Thanks,
Evgeny


icicimov at gmail

May 15, 2012, 10:50 PM

Post #2 of 4 (376 views)
Permalink
Re: TCP keepalive [In reply to]

Google Apache KeepAlive and you are done.
On May 16, 2012 2:58 PM, "Evgeny Shvidky" <evgeny [at] inovvia> wrote:

> Hi,****
>
> ** **
>
> I am developing a new module on C.****
>
> ** **
>
> In some cases, it takes to my module a long time to prepare a response
> (more than 2 minutes) and during this time a process handling this request
> is blocked.****
>
> In order to prevent a TCP connection disconnect a user sends his HTTP
> request with TCP keepalive flag on and also adds HTTP header "Connection:
> Keep-Alive".
> But for some reason Apache doesn't sends back a response for TCP keepalive
> and it causes to TCP connection to disconnect.****
>
> TCP timeout is exactly 2 minutes.****
>
> I tried to call "ap_set_keepalive" function for current request but
> nothing happened.****
>
> ** **
>
> How can I configure Apache to response to TCP keepalive flag?****
>
> ** **
>
> Thanks,****
>
> Evgeny****
>


covener at gmail

May 15, 2012, 11:10 PM

Post #3 of 4 (376 views)
Permalink
Re: TCP keepalive [In reply to]

On Wed, May 16, 2012 at 1:50 AM, Igor Cicimov <icicimov [at] gmail> wrote:
> Google Apache KeepAlive and you are done.

TCP Keepalive is different.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


evgeny at inovvia

May 20, 2012, 5:45 AM

Post #4 of 4 (367 views)
Permalink
RE: TCP keepalive [In reply to]

Hi,

I tried to set KeepAlive directive to "On" but it doesn't help.
Apache still doesn't send TCP keepalive messages.
As I understand, KeepAlive directive enables a persistent connections but it doesn't influence on TCP keepalive.
On which context Apache sends a TCP keepalive messages? Is it sent on context of HTTP request handling process?
How can I configure Apache to send TCP keepalive messages?

Thanks,
Evgeny

-----Original Message-----
From: Eric Covener [mailto:covener [at] gmail]
Sent: Wednesday, May 16, 2012 9:10 AM
To: users [at] httpd
Subject: Re: [users [at] http] TCP keepalive

On Wed, May 16, 2012 at 1:50 AM, Igor Cicimov <icicimov [at] gmail> wrote:
> Google Apache KeepAlive and you are done.

TCP Keepalive is different.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.