Branch: Tag:

2011-04-27

2011-04-27 16:21:53 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Protocols.HTTP: Some state reset cleanup fixes.

361:    string path=url->path;    if(path=="") path="/";    +  if (!con->headers || +  lower_case(con->headers["connection"]||"close") == "close") {    // Reset the state of con. -  con->errno = 0; -  con->ok = 0; -  con->headers = 0; -  con->protocol = 0; -  con->status = 0; -  con->status_desc = 0; +     con->data_timeout = 120;    con->timeout = 120;    con->con = 0; -  con->request = 0; -  con->buf = ""; -  con->headerbuf = ""; -  con->datapos = 0; -  con->discarded_bytes = 0; +     // con->conthread = 0; -  +  }       con->async_request(url->host, url->port,    method+" "+path+(query?("?"+query):"")+" HTTP/1.0",