in reply to HTTP server guidance
Has the backend a problem with idle connections?
Has the backend a problem with many connections?
Is there any kind of state in the backend connection?
If you can answer no to all these questions, then use mod_perl and just hold the connection in a global variable. It will stay there, one per webserver child, as long as the child lives.
And, configure the maximum, minimum idle and maximum idle number of childs to some values that match your setup...# Pseudocode our $conn; sub handler { my $r = shift; $conn ||= connect(); send($conn, 'abc'); print recv($conn); return OK; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: HTTP server guidance
by DaveH (Monk) on Nov 27, 2003 at 16:10 UTC | |
by Beechbone (Friar) on Nov 29, 2003 at 03:27 UTC | |
by DaveH (Monk) on Nov 30, 2003 at 21:11 UTC |