Home > front end > How long to keep the client and the server connection, ask for help!
How long to keep the client and the server connection, ask for help!
Time:03-21
Background is an embedded system, front-end using jquery, send the request to use ajax, the server is axtls, HTTPS requests are now short connection, according to a certain function, due to slower performance, only to establish a connection to make it, you can cycle request a function (company requires only supports HTTPS, cannot use HTTP), response headers on the server code increases the connection: keep alive, before the finish is to process a request to the server will close the connection, now here also changed, but found that the web client will initiate the next request again, a new connection, is there any way to help leaders ah, every time an ajax request would be to establish a connection?? Hope to solve, thank you