Commit 30ac46aa469b06cd47efa9625c2bf4862f8494b7

Edward Thomson 2018-11-28T10:12:43

http: reset replay_count upon connection Reset the replay_count upon a successful connection. It's possible that we could encounter a situation where we connect successfully but need to replay a request - for example, a connection and initial request succeeds without authentication but a subsequent call does require authentication. Reset the replay count upon any successful request to afford subsequent replays room to manuever.

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 611ec16..3a0d2cc 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -990,6 +990,7 @@ 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: