作者david220 (gogo mavs)
看板PangSir
標題[問題][計網hw2] 關於connection state
時間Mon May 2 10:17:01 2005
slide page 3.
HTTP/1.0 uses nonpersistent HTTP
slide page 7.
In request message
* Connection: close
* Means non-persistent connection
* Connection: Keep-Alive
* Means persistent connection
* Server should keep the connection alive a default
time(10s) and send back the Keep-Alive header
* Ex. Keep-Alive: timeout=10, max=100
那HTTP/1.0但connection state: keep-alive的話
到底是要persistent還是nonpersistent?
會有這樣的疑問是因為wget的header
=======================================
GET /
HTTP/1.0
User-Agent: Wget/1.9.1
Host: linux3.csie.ntu.edu.tw:5409
Accept: */*
Connection: Keep-Alive
其實要不要做難度上都一樣,只是想要有一個明確的準則
我目前是只根據connection state判斷
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.249.133
※ 編輯: david220 來自: 140.112.249.133 (05/02 10:18)
1F:推 lfst:我覺得Http1.0要是keep alive, 那就不叫http1.0140.112.246.171 05/02