You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Aaron Shettleroe <aa...@touchnet.com> on 2008/04/01 15:00:01 UTC

Understanding Keepalive

I'm using a packet sniffer to determine if keepalive is working.  It
seems that the keepalive functionality has only a small window before
the server will close the connection.  I'm using Oracle Application
Server 10g which is built on Apache 1.3.  Keepalive is on by default and
the log shows that the connection could be reused. logformat %c.

According to the packet sniffer, after a successdful POST request, about
3-4s later the server sends a TCP/IP FIN.  Is this 3-4s delay the only
time I have to send a new request to reuse the connection?
 
Is this typcially behavior for keepalive connections?  Or is this an
Apache server function?
 
Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Re: Understanding Keepalive

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Tue, 2008-04-01 at 08:00 -0500, Aaron Shettleroe wrote:
> I'm using a packet sniffer to determine if keepalive is working.  It
> seems that the keepalive functionality has only a small window before
> the server will close the connection.  I'm using Oracle Application
> Server 10g which is built on Apache 1.3.  Keepalive is on by default and
> the log shows that the connection could be reused. logformat %c.
> 
> According to the packet sniffer, after a successdful POST request, about
> 3-4s later the server sends a TCP/IP FIN.  Is this 3-4s delay the only
> time I have to send a new request to reuse the connection?

It appears so.

>  
> Is this typcially behavior for keepalive connections? 

This is not very common, but certainly possible. Do you have access to
the config files on the server?

>  Or is this an
> Apache server function?
>  

Yes, it is. HttpClient per default keeps connections alive indefinitely.

Oleg



> Thank you.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org