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


Groups > comp.lang.python > #108678 > unrolled thread

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

Started byPeter Otten <__peter__@web.de>
First post2016-05-16 19:34 +0200
Last post2016-05-16 19:35 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: OT: limit number of connections from browser to my server? Peter Otten <__peter__@web.de> - 2016-05-16 19:34 +0200
    Re: OT: limit number of connections from browser to my server? sohcahtoa82@gmail.com - 2016-05-16 10:57 -0700
      Re: OT: limit number of connections from browser to my server? Random832 <random832@fastmail.com> - 2016-05-16 14:04 -0400
      Re: OT: limit number of connections from browser to my server? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-16 19:35 +0000

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

FromPeter Otten <__peter__@web.de>
Date2016-05-16 19:34 +0200
SubjectRe: OT: limit number of connections from browser to my server?
Message-ID<mailman.24.1463420114.19823.python-list@python.org>
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?  Browser writers seems to assume that all https
> servers are massively parallel server farms with hardware crypto
> support.
> 
> So, when a browser wants to load a page that has the main html file, a
> css file, a javascript library or two, and a few icons and background
> bitmaps, they browser opens up a half-dozen SSL connections in
> parallel.

[brainstorm-mode on]

I think HTTP/2 allows multiple requests over a single TCP connection.

[toc] | [next] | [standalone]


#108680

Fromsohcahtoa82@gmail.com
Date2016-05-16 10:57 -0700
Message-ID<ee18c41b-7034-4934-8d63-c23aba5bf6e2@googlegroups.com>
In reply to#108678
On Monday, May 16, 2016 at 10:35:28 AM UTC-7, Peter Otten wrote:
> 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?  Browser writers seems to assume that all https
> > servers are massively parallel server farms with hardware crypto
> > support.
> > 
> > So, when a browser wants to load a page that has the main html file, a
> > css file, a javascript library or two, and a few icons and background
> > bitmaps, they browser opens up a half-dozen SSL connections in
> > parallel.
> 
> [brainstorm-mode on]
> 
> I think HTTP/2 allows multiple requests over a single TCP connection.

HTTP/1.1 already supports it, but most browsers have it disabled by default.

https://en.wikipedia.org/wiki/HTTP_pipelining

[toc] | [prev] | [next] | [standalone]


#108683

FromRandom832 <random832@fastmail.com>
Date2016-05-16 14:04 -0400
Message-ID<mailman.27.1463421894.19823.python-list@python.org>
In reply to#108680
On Mon, May 16, 2016, at 13:57, sohcahtoa82@gmail.com wrote:
> On Monday, May 16, 2016 at 10:35:28 AM UTC-7, Peter Otten wrote:
> > I think HTTP/2 allows multiple requests over a single TCP connection.
> 
> HTTP/1.1 already supports it, but most browsers have it disabled by
> default.
> 
> https://en.wikipedia.org/wiki/HTTP_pipelining

Technically, what he's asking for isn't even pipelining.

https://en.wikipedia.org/wiki/HTTP_persistent_connection

(The new feature in HTTP/2, incidentally, is support for multiple
*simultaneous* responses)

[toc] | [prev] | [next] | [standalone]


#108690

FromGrant Edwards <grant.b.edwards@gmail.com>
Date2016-05-16 19:35 +0000
Message-ID<mailman.32.1463427606.19823.python-list@python.org>
In reply to#108680
On 2016-05-16, Random832 <random832@fastmail.com> wrote:
> On Mon, May 16, 2016, at 13:57, sohcahtoa82@gmail.com wrote:
>> On Monday, May 16, 2016 at 10:35:28 AM UTC-7, Peter Otten wrote:
>>
>>> I think HTTP/2 allows multiple requests over a single TCP connection.
>> 
>> HTTP/1.1 already supports it, but most browsers have it disabled by
>> default.
>> 
>> https://en.wikipedia.org/wiki/HTTP_pipelining

Oops, sorry, I didn't see that you were referring to something other
than persistent connections.

> Technically, what he's asking for isn't even pipelining.
>
> https://en.wikipedia.org/wiki/HTTP_persistent_connection

Right. I just want convince browsers to use persistent connections and
as few of them as possible.

-- 
Grant Edwards               grant.b.edwards        Yow! One FISHWICH coming
                                  at               up!!
                              gmail.com            

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web