http 長連接和短連接

http 長連接和短連接的區別在於 使用的tcp是長連接還是短連接。 長鏈接的條件: 1.http connection 設置爲keep-alive.需要服務端和客戶端都進行設置 2.使用了http1.1協議後的都是長連接,connection都設置爲keep-alive keep-alive是什麼? http協議採用的是「請求-應答」模式,當connection爲非keep-alive模式,則每
相關文章
相關標籤/搜索