What are "long connections" and "short connections"?

Source: Internet
Author: User

Explanation 1

Long connection refers to the establishment of a socket connection, regardless of whether it is used to remain connected, but less secure,
The so-called short connection refers to the establishment of a socket connection after the receipt of data received after the disconnect immediately, the general bank uses a short connection

Explanation 2

Long connections are those that are kept connected in TCP based traffic, regardless of whether the data is currently being sent or received.
The short connection is only when there is data transmission to connect, customer-server communication/Transfer data is closed after the connection.

Explanation 3

The concept of long connection and short connection seems to have been mentioned in the Mobile CMPP protocol, but not elsewhere.
Communication mode
There are two kinds of connection modes between the network elements: long connection and short connection. A long connection is one in which multiple packets can be sent continuously on a TCP connection, and if no packets are sent during TCP connection retention, both sides are required to send a detection packet to maintain the connection. Short connection refers to the communication between the two parties have data interaction, the establishment of a TCP connection, after the data sent to complete, then disconnect this TCP connection, that is, each TCP connection completes only a pair of CMPP messages sent.
At the present stage, it is required that long connection communication should be adopted between ISMG, and it is suggested that the communication mode of long connection between SP and ISMG should be adopted.

Explanation 4

Short connection: For example, HTTP, just connect, request, close, process time is short, if the server does not receive a request for a period of time to close the connection.
Long connection: Some services need to connect to the server for a long time, such as CMPP, generally need to do their own online maintenance.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.