The unified diff between revisions [4d68673c..] and [29abc3f7..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'src/forward.c'
#
#
# patch "src/forward.c"
# from [bde01cf37e23444aea4910eed79e76d3371277fb]
# to [0cd445517e0ef996cf13bf0240590d59f635a1ac]
#
============================================================
--- src/forward.c bde01cf37e23444aea4910eed79e76d3371277fb
+++ src/forward.c 0cd445517e0ef996cf13bf0240590d59f635a1ac
@@ -150,14 +150,17 @@ fwdCheckRetry(FwdState * fwdState)
return 0;
if (fwdState->request->flags.body_sent)
return 0;
- if (fwdState->request->flags.pinned)
- return 0;
return 1;
}
static int
fwdCheckRetriable(FwdState * fwdState)
{
+ /* If the conneciton is pinned, we want to allow the re-use of this fd
+ regardless of method */
+ if (fwdState->request->flags.pinned)
+ return 1;
+
/* If there is a request body then Squid can only try once
* even if the method is indempotent
*/