Can https maintain a persistent connection?

No problem under the http proxy, http protocol with connection pool,

proxy can forward the request to each other after receiving the request. With keepalive, the persistent connection can be maintained

but HTTP/1.1 200 Connection Established

is returned after receiving the CONNECT request from the client under https.

and connect to the target server

then forward data to each other. After the http proxy, client receives the forwarded data, the connection to the target server maintained by proxy is automatically disconnected.

the connection of the target server cannot be maintained with keepalive. How to solve the problem

?
Mar.23,2021

I found the answer by myself and read the https protocol again

after the transmission is completed, the client initiates a close_notify message and the server closes the connection.

so when proxy receives a close_notify message from the client, it will not cause the connection to be closed.

at present, there is no problem. The connection has been maintained

  • The problem with HTTPS and HTTP

    my current front-end page is http, and then I will store userId in localStorage when I log in for the first time. because of program defects, as long as localStorage.setItem ( userId ,55). If you refresh it, you will be able to display 55% of the pri...

    Mar.13,2021
  • I would like to ask whether the request parameters of POST in HTTPS are all encrypted.

    if I use https, I can t see these things in the red box in the Network of my F12. ...

    Mar.13,2021
  • With regard to cross-domain, am I calling a third-party interface cross-domain?

    there are many questions about how to solve cross-domain problems, but I have always had a question, such as the figure below. Find a bunch of them on the Internet to explain cross-domain problems web http: store.company.com dir ... according ...

    Mar.23,2021
  • A question about axios cross-protocol requests

    Project uses vue-cli family bucket. Since the project has just been upgraded from http to https, the axios, used for asynchronous request has been tested to see if there is a problem with API access. It is found that there is an inexplicable problem: th...

    Mar.28,2021
  • HTTPS access

    I built a WEB Server, on the embedded device to access through HTTPS, but I found that if the page is not refreshed every few seconds, and then click on the page, the lower left corner of the browser will prompt "secure connection is being established "...

    Mar.28,2021
  • How to prevent github pages from using https automatically

    configure your own domain name www.rychou.xyz in github pages, and do not use the Enforce HTTPS option. Visiting http: www.rychou.xyz at this point will automatically switch to using https. ajaxhttphttpshttp after searching around google, I ...

  • How is pre-master-key generated?

    according to https s explanation, the generation of master_key requires random_S,random_C and pre master key. but I see that there are basically no articles on the Internet to explain how pre master key is generated, basically computing and generatin...

    Oct.28,2021
  • Tomcat uses https access

    I found Aliyun s free ssl certificate from the Internet to test the https URL, but according to the online tutorials, I can t access it with https all the time. What s the reason for not adjusting it? Still, you can only use http to access the URL. F...

    Feb.11,2022
  • The puzzle about url

    I often find that the url of some projects developed with vue or react has strings similar to those in the figure like hash (there are also nails); at first I thought the id was generated with mongodb, but then I asked others that it didn t seem to be; ...

    Feb.20,2022
Menu