Re: persistent database connections?
Volker, you opened a few threads on at least two ng's, that's
crossposting. I am not a purist, but some may not like it. I used to do
this and now I've learnt the lesson!
Volker Hetzer wrote:
> I want a database connection through http, clients will
> probably use XML-RPC in their communication with apache.
> The job of apache is to provide platform independence and
> SSL.
> But for the application to work I need persistent connections
> to the database, so that if three clients open sessions with
> the apache (i.e, there are three different values), I
> want three database connections to be created, with each
> one assigned to one session (based on the value).
> This database connection should stay until the client has
> logged off or the session has timed out.
Http, as long as I know, does not offer persistent connections. Don't
be fooled by some http1.1 features, such as keep-alive, they have
nothing to do with a persistent connection. You can use session,
and other tricks, but you have to use a scripting language
(php, for instance) to do the job.
If you want true persistent connection, don't use http.
Ottavio
|