What connection is opened by ajax's open? is it a TCP connection or a HTTP connection? is there a long connection and a short connection in ajax?

HTTP"s long connection means connection: keep-alive. TCP connection can be reused and has no other function. Does the connection of ajax have anything to do with long and short connections?

Mar.07,2021

what connection is opened by the open of ajax? is it a TCP connection or a HTTP connection

the connection requested by ajax is both TCP and HTTP connection, because HTTP is the connection at the application layer and TCP is used at the transport layer

is there a long connection or a short connection in ajax?

most Web server software uses HTTP/1.1 protocol, nine times out of ten you don't need to set up to use Connection: keep-alive. This depends on the server-side configuration.

Menu