in reply to Re: Re: HTTP server guidance
in thread HTTP server guidance
What happens if the connection times out? The server closes it and is happy, or does the backend server have any problems with it? And, is there any kind of "ping" message the perl wrapper could send to test if the connection is still alive?
I would just let the connections time out and don't care. If a perl wrapper finds the connection dead, it just silently opens a new one.
# $conn ||= connect(); if (not $conn or is_dead($conn) { $conn = connect(); } my $status = send($conn, 'abc'); if ($status == CONN_DEAD) { $conn = connect(); $status = send($conn, 'abc'); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: HTTP server guidance
by DaveH (Monk) on Nov 30, 2003 at 21:11 UTC |