httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aurélien Terrestris <aterrest...@gmail.com>
Subject Re: [users@httpd] Howto accept only one connection
Date Fri, 19 Feb 2016 12:33:46 GMT
Hello,

I'm not sure we can accept only one connection at a given time.
I tested with the "prefork MPM", and I only achieve 1 concurrent request
being processed at a given time and all others requests are buffered
(ListenBackLog doesn't seem to work on my server). Once the 1st request has
been processed, the other ones are processed one after the other.

If running on a Linux, maybe should you configure the iptables to limit
connections to 1 for the httpd port. Behind a F5 loadbalancer, there is the
Connection Limit parameter on the virtual server which can be set.


my httpd conf :

 ./configure .....  --with-mpm=prefork

<IfModule mpm_prefork_module>
    StartServers             1
    MinSpareServers          1
    MaxSpareServers          0
    MaxRequestWorkers        1
    MaxConnectionsPerChild   0
    ListenBacklog            1
    ServerLimit              1
</IfModule>


best regards
A.T.


2016-02-19 11:38 GMT+01:00 Jim Jagielski <jim@jagunet.com>:

> Just one connection? By that do you mean one concurrent user or
> actually one request or actually one connection?
>
> A connection is a socket opened between the client and the server.
> A request is a HTTP request on that connection.
>
> tia.
> > On Feb 19, 2016, at 2:50 AM, Oliver Graute <oliver.graute@gmail.com>
> wrote:
> >
> > On 18/02/16, Christopher Schultz wrote:
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> Oliver,
> >>
> >> On 2/18/16 8:31 AM, Oliver Graute wrote:
> >>> is it possible to configure Apache 2.4 to accept only one
> >>> connection at time on port 443? is this something I can configure
> >>> for my Virtual Hosts?
> >>
> >> For testing, or for long-term behavior?
> >
> > for long-term behavior, its a requirement by the costumer.
> >
> > Best regards,
> >
> > Oliver
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message