作者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