http 长连接和短连接

http 长连接和短连接的区别在于 使用的tcp是长连接还是短连接。 长链接的条件: 1.http connection 设置为keep-alive.需要服务端和客户端都进行设置 2.使用了http1.1协议后的都是长连接,connection都设置为keep-alive keep-alive是什么? http协议采用的是“请求-应答”模式,当connection为非keep-alive模式,则每
相关文章
相关标签/搜索