Skip to content

Commit 30ac46a

Browse files
committed
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 parent 02bb39f commit 30ac46a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/transports/http.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ static int http_connect(http_subtransport *t)
990990
t->proxy.stream = proxy_stream;
991991
t->server.stream = stream;
992992
t->connected = 1;
993+
t->replay_count = 0;
993994
return 0;
994995

995996
on_error:

0 commit comments

Comments
 (0)