We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36f9095 commit 324918eCopy full SHA for 324918e
1 file changed
src/proxy/http/HttpSM.cc
@@ -1933,13 +1933,15 @@ HttpSM::state_read_server_response_header(int event, void *data)
1933
switch (event) {
1934
case VC_EVENT_EOS:
1935
server_entry->eos = true;
1936
+ // If we have received any bytes for this transaction do not retry
1937
+ if (server_response_hdr_bytes > 0) {
1938
+ t_state.current.retry_attempts.maximize(t_state.configured_connect_attempts_max_retries());
1939
+ }
1940
+ break;
1941
- // Fall through
1942
case VC_EVENT_READ_READY:
1943
case VC_EVENT_READ_COMPLETE:
1944
// More data to parse
- // Got some data, won't retry origin connection on error
- t_state.current.retry_attempts.maximize(t_state.configured_connect_attempts_max_retries());
1945
break;
1946
1947
case VC_EVENT_ERROR:
0 commit comments