summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-03-14 10:36:40 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-10 19:58:22 +0100
commit956ba48bdd488d4e22dd5a468df952765b8c9824 (patch)
tree6b6683fd404783911515005e60e37020da743d89
parent7912db49d381d54d9a37a32d1f1b215430f19358 (diff)
downloadlibgit2-956ba48bdd488d4e22dd5a468df952765b8c9824.tar.gz
http: increase the replay count
Increase the permissible replay count; with multiple-step authentication schemes (NTLM, Negotiate), proxy authentication and redirects, we need to be mindful of the number of steps it takes to get connected. 7 seems high but can be exhausted quickly with just a single authentication failure over a redirected multi-state authentication pipeline.
-rw-r--r--src/transports/http.c2
-rw-r--r--src/transports/http.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/transports/http.c b/src/transports/http.c
index d4156da66..bd3f812c0 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -108,7 +108,7 @@ typedef struct {
int parse_error;
int error;
unsigned parse_finished : 1,
- replay_count : 3;
+ replay_count : 4;
} http_subtransport;
typedef struct {
diff --git a/src/transports/http.h b/src/transports/http.h
index b09475755..ddaab0b45 100644
--- a/src/transports/http.h
+++ b/src/transports/http.h
@@ -10,7 +10,7 @@
#include "buffer.h"
-#define GIT_HTTP_REPLAY_MAX 7
+#define GIT_HTTP_REPLAY_MAX 15
GIT_INLINE(int) git_http__user_agent(git_buf *buf)
{