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


Groups > comp.lang.python > #108740

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-17 14:22 +0000
Message-ID <mailman.59.1463494967.19823.python-list@python.org> (permalink)
References (2 earlier) <5739ff37$0$1605$c3e8da3$5496439d@news.astraweb.com> <nhdgem$u2u$1@ger.gmane.org> <mailman.37.1463436577.19823.python-list@python.org> <dpvqndFj7hlU1@mid.individual.net> <nhf9f6$cel$1@ger.gmane.org>

Show all headers | View raw


On 2016-05-17, Gregory Ewing <greg.ewing@canterbury.ac.nz> wrote:

> Is there some way you can get more stuff into a single
> html page? For example, use inline css and image data
> instead of delivering them as separate files.

Yes.  That's one option that's still on the table, and that's probably
what the smart money is betting on: use server-side includes for css
and javascript files.  For image data, I'd need to add a
server-side-include-and-base64-encode capability, but that shouldn't
take more than a couple hours.


Then the HTML editing starts...

I've seen examples of including base64 image data in HTML <img> tags,
but don't know how to do it in CSS for things like backgrounds.

That said, I've got two more things to try to see if I can convince
browsers to behave:

 1) Stall the connection after the TCP connection opens but before the
    SSL handshake.

 2) Try listen(0) on my BSD-derived network stack to limit the number
    of TCP connections.  IIRC, BSD behaves differently than Linux when
    the listen queue overflows.

I doubt either one will help -- and even if they do, it'll probably
all fall apart again when new browser versions come out.

I'm also looking into SSL session resumption.  My SSL stack appears to
support it, but I can't tell if it's being used or not by browsers.

It may be a moot point.  All of the descriptions I've read about SSL
session resumption say it's for low-overhead reopening of a previously
closed connection.  That's not what I need: I need to speed up opening
of a new connection while the first connection is still open.

-- 
Grant Edwards               grant.b.edwards        Yow! Mary Tyler Moore's
                                  at               SEVENTH HUSBAND is wearing
                              gmail.com            my DACRON TANK TOP in a
                                                   cheap hotel in HONOLULU!

Back to comp.lang.python | Previous | NextPrevious 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