--------------------- PatchSet 2344 Date: 2001/05/16 08:34:42 Author: rbcollins Branch: ntlm Tag: (none) Log: work around for pipeline race with NTLM Members: src/auth/ntlm/auth_ntlm.c:1.1.10.14.2.13->1.1.10.14.2.14 Index: squid/src/auth/ntlm/auth_ntlm.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/auth/ntlm/auth_ntlm.c,v retrieving revision 1.1.10.14.2.13 retrieving revision 1.1.10.14.2.14 diff -u -r1.1.10.14.2.13 -r1.1.10.14.2.14 --- squid/src/auth/ntlm/auth_ntlm.c 23 Apr 2001 09:06:20 -0000 1.1.10.14.2.13 +++ squid/src/auth/ntlm/auth_ntlm.c 16 May 2001 08:34:42 -0000 1.1.10.14.2.14 @@ -180,6 +180,16 @@ } else { debug(28, 0) ("unrecognised ntlm auth scheme parameter '%s'\n", param_str); } + /* disable client side request pipelining. There is a race with NTLM when the client + * sends a second request on an NTLM connection before the authenticate challenge is + * sent. + * With this patch, the client may fail to authenticate, but squid's state will be + * preserved. + * Caveats: this should be a post-parse test, but that can wait for the modular + * parser to be integrated. + */ + if (ntlmConfig->authenticate) + Config.onoff.pipeline_prefetch=0; }