The difference between http and socket

The http socket is built on the socket, the browser is equivalent to the client of the socket, the server we wrote is equivalent to the server of the socket, but http encapsulates the socket, that is, it is disconnected after the request; even if there is keep -alive also only ensures that the requests sent by the client within a period of time go through the same TCP channel, so as to avoid continuous connection and disconnection

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324491098&siteId=291194637