At work, we have a client-server system in which clients send requests to the web server via HTTP. Processing on the server side can sometimes take more than 60 seconds, which is the proxy server timeout value set by our IT staff and cannot be changed. Is there a way to keep an HTTP connection alive for longer than 60 seconds (preferably for an arbitrarily long period of time), or using pulsating messages from a server or client?
I know that there are persistent HTTP 1.1 connections, but this is not what I want.
Does the HTTP function have a health function, or should it be done at the TCP level through any socket option?
Assuming that you control both sides of the system, you can fake it by periodically sending data back and forth so that the session does not work - most browsers do not disconnect while the data is moving.
, , , , ( Ajax), , . Ajax , , . - ( -), .
.
no-op - HTML, - :
<!-- keepalive -->
10 .
Source: https://habr.com/ru/post/1739545/More articles:Writing a Javascript library that is suitable for code completion and code verification - javascriptStarting a new project - where to start? - unit-testingEvent registration from another topic - multithreadingIronPython overrides __setattr__ and __getattr__ - c #using Spring JdbcTemplate for multiple database operations - javaWhy does the checkbox attribute "checked" return the actual value opposite to it on a click event? - javascriptiPhone: Monthly Grouping - Basic Data - iphoneWhat proprietary C ++ profiling tool do you offer? - c ++Matplotlib digits grouping (decimal separator) - pythonCoding segment length jpg - jpegAll Articles