Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
3110-kernel-test-More-rest-data-calc-fixing.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 3110-kernel-test-More-rest-data-calc-fixing.patch of Package erlang
From afaf96f3690ff3a67df70b43e8898e6d564f45c4 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Fri, 5 Apr 2024 18:53:48 +0200 Subject: [PATCH 10/11] [kernel|test] More rest data calc fixing OTP-18845 --- lib/kernel/test/gen_tcp_misc_SUITE.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/kernel/test/gen_tcp_misc_SUITE.erl b/lib/kernel/test/gen_tcp_misc_SUITE.erl index 3f98e7692a..d57ae645e8 100644 --- a/lib/kernel/test/gen_tcp_misc_SUITE.erl +++ b/lib/kernel/test/gen_tcp_misc_SUITE.erl @@ -6915,6 +6915,8 @@ timeout_sink_loop(Action, To, N) -> rest_data_size(Bin) when is_binary(Bin) -> byte_size(Bin); +rest_data_size([]) -> + 0; rest_data_size([Bin|IOVec]) when is_binary(Bin) -> byte_size(Bin) + rest_data_size(IOVec). @@ -7589,12 +7591,12 @@ otp_7816_send_data(Ctrl, Socket, Data, Loops) -> %% NOTE THAT THIS MEANS THAT WE MAY HAVE A PARTIAL PACKAGE %% WRITTEN, INCLUDING A HEADER THAT INDICATES A DATA %% SIZE THAT IS **NOT** PRESENT!! - %% So for this trest case to work, we need to write the rest. + %% So for this test case to work, we need to write the rest. %% But we cannot do that without first setting the package to raw. %% ?P("[client] send timeout" "~n with ~w bytes of rest data" - "~n when Loops: ~p", [byte_size(RestData), Loops]), + "~n when Loops: ~p", [rest_data_size(RestData), Loops]), Ctrl ! {self(), continue, Loops + 1}, ?P("[client] packet to 'raw'..."), ok = inet:setopts(Socket, [{packet, raw}, {send_timeout, 1000}]), -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor