Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108688

Re: OT: limit number of connections from browser to my server?

From Grant Edwards <grant.b.edwards@gmail.com>
Newsgroups comp.lang.python
Subject Re: OT: limit number of connections from browser to my server?
Date 2016-05-16 19:28 +0000
Message-ID <mailman.30.1463426931.19823.python-list@python.org> (permalink)
References <nhcr5g$o1k$1@ger.gmane.org> <mailman.17.1463414817.19823.python-list@python.org> <5739ff37$0$1605$c3e8da3$5496439d@news.astraweb.com> <nhd71b$je7$2@ger.gmane.org>

Show all headers | View raw


On 2016-05-16, Steven D'Aprano <steve@pearwood.info> wrote:
> On Tue, 17 May 2016 02:06 am, Grant Edwards wrote:
>
>> This is not Python specific, though I'm turning to Python to do some
>> experimentation and to try to prototype a solution.
>> 
>> Is there any way to limit the number of connections a browser uses to
>> download a web page?
>
> Well, you control the server. It's your own server, right? Can you
> not tell the server to limit how many connections it accepts from
> any one client?

Definitely.

> That's not a rhetorical question -- I don't know the answer, and I
> know nothing about HTTPS server. But I would imagine that they don't
> allow unlimited connections from each client. Can you tell your
> server to only allow N connections from each client, where N is
> small enough?

Yep, I should be able to do that.  I can even reduce it to a simpler
case of only allowing N connections total.  Saying we only support one
browser session at a time is probably acceptable if it solves the long
https page load times.

Before I go to the effort of hacking up the server to change how/when
it accepts connections[1], I want to try prototyping something like
that Python to make sure that refusing or stalling a "parallel"
connection won't cause the browser to throw up its hands and tell the
user "this page can't be loaded."

[1] We didn't write the server.  We licensed source from somebody
    yonks ago.  It was then abaondoned and maintined by us and by
    applying patches we got from other users in our situation.

-- 
Grant Edwards               grant.b.edwards        Yow! I'm RELIGIOUS!!
                                  at               I love a man with
                              gmail.com            a HAIRPIECE!!  Equip me
                                                   with MISSILES!!

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

OT: limit number of connections from browser to my server? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-16 16:06 +0000
  Re: OT: limit number of connections from browser to my server? Steven D'Aprano <steve@pearwood.info> - 2016-05-17 03:11 +1000
    Re: OT: limit number of connections from browser to my server? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-16 19:28 +0000
    Re: OT: limit number of connections from browser to my server? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-16 22:09 +0000
      Re: OT: limit number of connections from browser to my server? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-05-17 18:06 +1200
        Re: OT: limit number of connections from browser to my server? Marko Rauhamaa <marko@pacujo.net> - 2016-05-17 09:23 +0300
          Re: OT: limit number of connections from browser to my server? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-17 14:23 +0000
        Re: OT: limit number of connections from browser to my server? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-17 14:22 +0000

csiph-web