Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2014-04-30
ZTE CORP
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of this solution is that the XMLSocket class can only be connected to a TCP port with a port number greater than or equal to 1024, and the server program communicating with the XMLSocket object must also be assigned to a port with a port number greater than or equal to 1024
Generally, firewalls only open 80 and some other commonly used ports for security reasons, so XMLSocket cannot pass through the firewall, which may result in unsuccessful message sending, and an additional communication interface needs to be set in the browser, which is not the default interface of the browser. , may be limited by the proxy server, and the client also needs to install the Flash plug-in

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for maintaining connection
  • Method and device for maintaining connection
  • Method and device for maintaining connection

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for maintaining connection, which is used for realizing a hypertext transmission protocol (http)-based long connection to improve the real-time of data transmission in the http. The method comprises the following steps of: receiving a connection request and establishing an http connection; establishing a message queue according to the connection request; and waiting for data required to be transmitted through the message queue so as to maintain the connection. The invention also discloses a device used for implementing the method.

Description

technical field [0001] The present invention relates to the communication field, in particular to a method and device for maintaining connection. Background technique [0002] http (Hypertext Transfer Protocol, Hypertext Transfer Protocol) is a hypertext transfer protocol, an application layer communication protocol between a client browser or other programs and a Web (World Wide Web) server. There is only a short connection method in http itself. The transmission process is mainly: request data - establish a connection - send a response - close the connection, and close the connection immediately after the request response ends. If a new request is required, the connection must be re-established. Since it takes a certain amount of time to establish an http request connection, the real-time performance will be reduced, and it is not suitable for systems with high real-time requirements, such as monitoring systems, and it will also have a great impact on the load of the serve...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08G06F17/30G06F9/46
Inventor 黄志辉
Owner ZTE CORP