Skip to content

Commit

Permalink
Use read_ahead in SSL for KTLS
Browse files Browse the repository at this point in the history
  • Loading branch information
RaimoNiskanen committed Aug 30, 2024
1 parent 69f9884 commit e806202
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/ssl/src/inet_tls_dist.erl
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ inet_set_ktls(
inet:setopts(
Socket,
[list, {packet, Packet}, {packet_size, PacketSize},
{header, Header}, {active, Active}])
{header, Header}, {read_ahead, true}, {active, Active}])
of
ok ->
ok;
Expand Down
6 changes: 3 additions & 3 deletions lib/ssl/test/inet_epmd_cryptcookie_inet_ktls.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2023. All Rights Reserved.
%% Copyright Ericsson AB 2023-2024. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -57,7 +57,7 @@ listen_open(_NetAddress, Options) ->
inet_epmd_dist:merge_options(
Options,
[{active, false}, {mode, binary}, {packet, 0},
inet_epmd_dist:nodelay()],
{read_ahead, false}, inet_epmd_dist:nodelay()],
[])}.

%% ------------------------------------------------------------
Expand Down Expand Up @@ -111,7 +111,7 @@ connect(NetAddress, _Timer, Options) ->
inet_epmd_dist:merge_options(
Options,
[{active, false}, {mode, binary}, {packet, 0},
inet_epmd_dist:nodelay()],
{read_ahead, false}, inet_epmd_dist:nodelay()],
[]),
#net_address{ address = {Ip, Port} } = NetAddress,
maybe
Expand Down

0 comments on commit e806202

Please sign in to comment.