Answer the question
In order to leave comments, you need to log in
How to make the browser work through one connection?
A web application with its own, as it were, server, per client.
The server provides one connection. From the word at all! After the connection is received, the listening socket is closed. This feature of the server is not discussed.
The browser sends a request over an open connection.
The server responds to requests in keep alive mode.
The browser displays the page.
Everything works fine with Fox and Opera, but there are problems with Chrome.
But at low content upload speeds, Chrome tries to open another connection, and there is a bubuk. Pictures are not displayed. ERR_CONNECTION_REFUSED error in console. I suspect that such an error will pop up with other browsers, but at lower speeds.
How to make the browser work through one connection? I feel in my gut that I need to send some kind of meta tag to the browser. Which?
PS. Same problem with iPhone
Answer the question
In order to leave comments, you need to log in
Put a normal proxy server in front of the "like a server", let it hold one connection to it, either in general or for each client. and already works with clients in a human way, without these non-negotiable fantasies
let the server use HTTP / 2))
in Chrome, alas, there is no such
All browsers open more connections when needed and not all can change this
sgdev-blog.blogspot.com/2014/01/maximum-concurrent...
For firefox:
about:config: network.http.max-connections-per-server
The fact that some browsers work for you is more an accident than a correct operation. Apparently they have already cached some static data, so one connection is enough for them.
If you have control over the site at least, then you can come up with a Js wrapper that will load resources 1 at a time. This is a universal solution so that it works in both chrome and safari.
With chrome, in theory, at the extension level, you can solve the issue too, but there is ublock, which means it can control all http requests, and it can simply stop until at least 1 has not yet been loaded, I think freelancing will write you a quick message for 2000-3000 rubles.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question