Module: wine
Branch: master
Commit: 3797a66404a80b33b5618189fa6630827eb78b8a
URL: https://gitlab.winehq.org/wine/wine/-/commit/3797a66404a80b33b5618189fa6630…
Author: Hans Leidekker <hans(a)codeweavers.com>
Date: Thu Dec 8 10:08:29 2022 +0100
winhttp/tests: Reduce send buffer size.
It looks like there was a change on the websocket test server that causes our
send operations to block. Reducing the size of the send buffer works around the
test failures. The tests still succeed on Windows, which suggests that native
sends large buffers in smaller chunks.
---
dlls/winhttp/tests/notification.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winhttp/tests/notification.c b/dlls/winhttp/tests/notification.c
index a9f782f5e3d..7c313370768 100644
--- a/dlls/winhttp/tests/notification.c
+++ b/dlls/winhttp/tests/notification.c
@@ -776,7 +776,7 @@ static const struct notification websocket_test5[] =
{ winhttp_close_handle, WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING, NF_SIGNAL }
};
-#define BIG_BUFFER_SIZE (32 * 1024)
+#define BIG_BUFFER_SIZE (16 * 1024)
static void test_websocket(BOOL secure)
{