http KeepAliveTimeout

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

http KeepAliveTimeout

Ritesh Patel
Is there a way to specify the KeepAliveTimeout in Jetty (Similar to Apache)?

Apache conf has the following:
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss
Reply | Threaded
Open this post in threaded view
|

Re: http KeepAliveTimeout

Chris Haynes

See javadoc for

     SocketListener#setIdleTimeMs(int)  (actually a method of ThreadPool)

and read the tutorial for how to set if using XML config.

You will find that your SocketListener is already being given a value in the
sample XML config file supplied with the distro. Just change this value.

BTW, Jetty is smart, and uses a shorter time (lowResourcePersistTimeMs) if the
number of free threads gets too small.

Chris Haynes


----- Original Message -----
From: "R Patel" <[hidden email]>
To: <[hidden email]>
Sent: Monday, May 16, 2005 10:57 PM
Subject: [jetty-discuss] http KeepAliveTimeout


> Is there a way to specify the KeepAliveTimeout in Jetty (Similar to Apache)?
>
> Apache conf has the following:
> #
> # KeepAliveTimeout: Number of seconds to wait for the next request from the
> # same client on the same connection.
> #
> KeepAliveTimeout 15
>




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss