Commit 1071852653c55dbf9729065f62cb9a7aab51a39a

Edward Thomson 2019-03-09T13:53:16

http: don't reset replay count after connection A "connection" to a server is transient, and we may reconnect to a server in the midst of authentication failures (if the remote indicates that we should, via `Connection: close`) or in a redirect.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/transports/http.c b/src/transports/http.c
index 745da92..213c651 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -1044,7 +1044,6 @@ static int http_connect(http_subtransport *t)
 	t->proxy.stream = proxy_stream;
 	t->server.stream = stream;
 	t->connected = 1;
-	t->replay_count = 0;
 	return 0;
 
 on_error: