From: Jacek Caban jacek@codeweavers.com
--- dlls/wininet/tests/http.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c index 6a5a18fe282..aadedd27f24 100644 --- a/dlls/wininet/tests/http.c +++ b/dlls/wininet/tests/http.c @@ -7400,8 +7400,8 @@ static const struct notification async_send_request_ex_test2[] = { http_send_request_ex, INTERNET_STATUS_COOKIE_SENT, TRUE, FALSE, TRUE }, { http_send_request_ex, INTERNET_STATUS_RESOLVING_NAME, TRUE, FALSE, TRUE }, { http_send_request_ex, INTERNET_STATUS_NAME_RESOLVED, TRUE, FALSE, TRUE }, - { http_send_request_ex, INTERNET_STATUS_CONNECTING_TO_SERVER, TRUE, TRUE }, - { http_send_request_ex, INTERNET_STATUS_CONNECTED_TO_SERVER, TRUE, TRUE }, + { http_send_request_ex, INTERNET_STATUS_CONNECTING_TO_SERVER, TRUE }, + { http_send_request_ex, INTERNET_STATUS_CONNECTED_TO_SERVER, TRUE }, { http_send_request_ex, INTERNET_STATUS_SENDING_REQUEST, TRUE }, { http_send_request_ex, INTERNET_STATUS_REQUEST_SENT, TRUE }, { http_send_request_ex, INTERNET_STATUS_REQUEST_COMPLETE, TRUE }, @@ -7445,8 +7445,8 @@ static const struct notification async_send_request_ex_chunked_test[] = { http_end_request, INTERNET_STATUS_RECEIVING_RESPONSE, TRUE }, { http_end_request, INTERNET_STATUS_RESPONSE_RECEIVED, TRUE }, { http_end_request, INTERNET_STATUS_REQUEST_COMPLETE, TRUE }, - { internet_close_handle, INTERNET_STATUS_CLOSING_CONNECTION }, - { internet_close_handle, INTERNET_STATUS_CONNECTION_CLOSED }, + { internet_close_handle, INTERNET_STATUS_CLOSING_CONNECTION, FALSE, FALSE, TRUE }, + { internet_close_handle, INTERNET_STATUS_CONNECTION_CLOSED, FALSE, FALSE, TRUE }, { internet_close_handle, INTERNET_STATUS_HANDLE_CLOSING }, { internet_close_handle, INTERNET_STATUS_HANDLE_CLOSING } }; @@ -7497,6 +7497,10 @@ static void test_async_HttpSendRequestEx(const struct notification_data *nd)
trace("Async HttpSendRequestEx test (%s %s)\n", nd->method, nd->host);
+ /* Collect all existing persistent connections */ + ret = InternetSetOptionA(NULL, INTERNET_OPTION_SETTINGS_CHANGED, NULL, 0); + ok(ret, "InternetSetOption(INTERNET_OPTION_END_BROWSER_SESSION) failed: %lu\n", GetLastError()); + InitializeCriticalSection( ¬ification_cs );
info.test = nd->test;