Many websites, and even database servers such as Couch DB & Neo4j provide their data over HTTP. Should people implementing client libraries for those APIs use persistent HTTP connections?
Asked
Active
Viewed 1,294 times
4
-
See also http://stackoverflow.com/questions/1037406/python-urllib2-with-keep-alive, which discusses how to implement this – Tim McNamara Jun 07 '11 at 22:10
1 Answers
1
Yes. "A significant difference between HTTP/1.1 and earlier versions of HTTP is that persistent connections are the default behavior of any HTTP connection. That is, unless otherwise indicated, the client SHOULD assume that the server will maintain a persistent connection, even after error responses from the server." See http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html for more info.

fumanchu
- 14,419
- 6
- 31
- 36