Method and device for maintaining connection
A technology for establishing connections and connection requests, applied in the field of communication, can solve problems such as failure to pass through firewalls, unsuccessful message sending, etc., and achieve the effect of improving real-time performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0035] In the embodiment of the present invention, a connection request is received and an http connection is established; a message queue is created according to the connection request; and the message queue is used to wait for data to be transmitted to maintain the connection. In the prior art, there is a sending queue only when there is data to be sent, and the queue only acts as a buffer for data, so the connection cannot be maintained for a long time, but in the embodiment of the present invention, the message queue corresponds to the connection, as long as the connection is established That is to create a message queue for the connection, which does not exist due to the existence of data, thereby establishing a long connection based on http, and improving the real-time performance of data transmission in http.
[0036] see figure 1 , the system for maintaining connections in this embodiment of the present invention includes a server 100 and a client 200 .
[0037] The s...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 