Hans Leidekker : wininet: Don' t close proxy connections when keep-alive is specified.

Alexandre Julliard julliard at winehq.org
Mon Mar 31 09:15:30 CDT 2008


Module: wine
Branch: master
Commit: 454fae84321f46d2c5b7df7f763d2855fc304948
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=454fae84321f46d2c5b7df7f763d2855fc304948

Author: Hans Leidekker <hans at it.vu.nl>
Date:   Sun Mar 30 19:16:34 2008 +0100

wininet: Don't close proxy connections when keep-alive is specified.

---

 dlls/wininet/http.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 3980e9a..3f83d6d 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -3971,9 +3971,10 @@ BOOL HTTP_FinishedReading(LPWININETHTTPREQW lpwhr)
     {
         WCHAR szConnectionResponse[20];
         dwBufferSize = sizeof(szConnectionResponse);
-        if (!HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_CONNECTION, szConnectionResponse,
-                                 &dwBufferSize, NULL) ||
-            strcmpiW(szConnectionResponse, szKeepAlive))
+        if ((!HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_CONNECTION, szConnectionResponse, &dwBufferSize, NULL) ||
+             strcmpiW(szConnectionResponse, szKeepAlive)) &&
+            (!HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_PROXY_CONNECTION, szConnectionResponse, &dwBufferSize, NULL) ||
+             strcmpiW(szConnectionResponse, szKeepAlive)))
         {
             HTTPREQ_CloseConnection(&lpwhr->hdr);
         }




More information about the wine-cvs mailing list