Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Timeouts -- how to implement ???

From: dean gaudet <dgaudet-list-modproxy-dev(at)arctic.org>
Date: Wed Mar 28 2001 - 12:33:57 EST


a technique i've used for such code is to have a pool of pre-connected sockets to the internal servers. that way when you get a request you don't have to wait to get a new server connection... and you don't have to spend time annoying the user timing out when one of your servers is down.

this sort of thing only works well in a threaded or state-based server.

you need to play a bit with the algorithms for populating the pool. start off with one conn to each server. have a periodic task wake up to add conns to servers if there's deemed to be insufficient for the load you're experiencing (or remove conns if the load has dropped). and whenever you finish using a server conn, immediately relaunch one to that server (this maintains the pool size).

-dean

On Tue, 27 Mar 2001, Ian Holsman wrote:

> Hi.
> we have a need to implement timeouts in the reverse proxy code ( for
Received on Wed Mar 28 17:34:01 2001

This archive was generated by hypermail 2.1.8 : Thu Aug 24 2006 - 14:53:15 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library