keep-alive in Protocols.HTTP.Query does not work
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1743
Reported by Marcus Wellhardh wellhard@roxen.com
The second do_method does not work in the following testcase:
void main()
{
Protocols.HTTP connection =
Protocols.HTTP.do_method("GET", "http://www.roxen.com/");
werror("Connection: %O\n", connection);
connection =
Protocols.HTTP.do_method("GET", "http://www.roxen.com/company/",
0, 0, connection);
werror("Connection: %O\n", connection);
}
Output:
~/bug $ pike http-query.pike Connection: Query(200 OK) Connection: Query() ~/bug $