What are "persistent connections" and "Transient connections "?

Source: Internet
Author: User

Interpretation 1

Persistent connection means that the connection is maintained no matter whether or not it is used after a socket connection is established, but the security is poor,
The so-called short connection means that the connection is closed immediately after the socket connection is established and the data is sent and received. Generally, banks use short connections.

Interpretation 2

Persistent connection means to keep the connection in TCP-based communication regardless of whether data is sent or received.
Short connections are only connected when data is transmitted. After the customer-server communication or data transmission is complete, the connection is closed.

Explanation 3

The concept of persistent connection and short connection seems to have only been mentioned in the mobile CMPP protocol, but not in other places.
Communication Method
There are two connection methods for each network element: persistent connection and short connection. A persistent connection means that multiple data packets can be sent continuously over a TCP connection. If no data packet is sent during TCP connection persistence, both parties need to send a detection packet to maintain this connection. A short connection is a TCP connection established when both parties have data interaction. After the data is sent, the TCP connection is disconnected, that is, only one CMPP message is sent each time.
At this stage, ismg must use persistent connections. We recommend that you use persistent connections between the SP and ismg.

 

Interpretation 4

Short connection: for example, HTTP only supports connection, request, and close. If the server does not receive a request within a certain period of time, the connection is closed.
Persistent connection: Some services need to be connected to the server for a long time, such as CMPP. They generally need to be maintained online by themselves.

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.