From e05a7d7934cb45020cbc8c796d1cb48a8c1006ee Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sat, 24 Jun 2023 07:51:05 +0100 Subject: [PATCH] socket zerocopy test reduce data sent to fix CI attempt --- ext/sockets/tests/socket_sendto_zerocopy.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/sockets/tests/socket_sendto_zerocopy.phpt b/ext/sockets/tests/socket_sendto_zerocopy.phpt index 107444b6313a4..1c863951fc686 100644 --- a/ext/sockets/tests/socket_sendto_zerocopy.phpt +++ b/ext/sockets/tests/socket_sendto_zerocopy.phpt @@ -33,7 +33,7 @@ if (!socket_bind($s, $address, $port)) { die("Unable to bind to $address"); } -$msg = str_repeat("0123456789abcdef", 1024); +$msg = str_repeat("0123456789abcdef", 256); $len = strlen($msg); $bytes_recv = 0; $bytes_sent = socket_sendto($socket, $msg, $len, MSG_ZEROCOPY, $address, $port); @@ -46,6 +46,6 @@ socket_close($s); socket_close($socket); ?> --EXPECTF-- -16384 sent! +4096 sent! 16 received! Received 0123456789abcdef!