Perlbal - Configurable Socket Timeout

This is Interesting: Free IT Magazines  
Home > Archive > Perlbal > August 2007 > Configurable Socket Timeout





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Configurable Socket Timeout
Justin Huff

2007-06-27, 1:12 pm

Here is a quick patch to allow the socket time out to be configured on a
per-service basis.

Disclaimer: we aren't (yet) running this in production.

--Justin

Leon Brocard

2007-08-10, 7:11 am

On 27/06/07, Justin Huff <jjhuff@mspin.net> wrote:
> Here is a quick patch to allow the socket time out to be configured on a
> per-service basis.


Yay, a patch!

> Disclaimer: we aren't (yet) running this in production.


That's probably best, it confuses the two max_idle_time subroutines
that used to be in the codebase ;-)

I've just got rid of one in ClientHTTPBase.pm which is now the
persist_client_timeout option in subversion (that defaults to 30
seconds) and is a timeout in seconds for keep-alives to the end user.

The other one is in Socket.pm: the default is for sockets to never
time out (0). Is this what you are interested in, or does the new
persist_client_timeout configuration option good enough for you?

Regards, Leon

Justin Huff

2007-08-10, 1:11 pm

>> Disclaimer: we aren't (yet) running this in production.
> That's probably best, it confuses the two max_idle_time subroutines
> that used to be in the codebase ;-)

Oops! I think I did end up pushing that anyway

> I've just got rid of one in ClientHTTPBase.pm which is now the
> persist_client_timeout option in subversion (that defaults to 30
> seconds) and is a timeout in seconds for keep-alives to the end user.
>
> The other one is in Socket.pm: the default is for sockets to never
> time out (0). Is this what you are interested in, or does the new
> persist_client_timeout configuration option good enough for you?

We aren't using persistent connections since there were some other
issues we ran into. However, we do have cases where we launch a single
request, and it might sit idle for a while -- perlbal was dropping the
connection.

--Justin

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com