Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
7894-Use-read_ahead-in-SSL-for-KTLS.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7894-Use-read_ahead-in-SSL-for-KTLS.patch of Package erlang
From 113428448a098ae302fbfbabfa6d97513938e44c Mon Sep 17 00:00:00 2001 From: Raimo Niskanen <raimo@erlang.org> Date: Thu, 25 Jul 2024 17:51:36 +0200 Subject: [PATCH 4/7] Use read_ahead in SSL for KTLS --- lib/ssl/src/inet_tls_dist.erl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/ssl/src/inet_tls_dist.erl b/lib/ssl/src/inet_tls_dist.erl index c93bb27596..fddf17bddb 100644 --- a/lib/ssl/src/inet_tls_dist.erl +++ b/lib/ssl/src/inet_tls_dist.erl @@ -217,7 +217,7 @@ listen(Name, Host) -> gen_listen(Driver, Name, Host) -> case inet_tcp_dist:gen_listen(Driver, Name, Host) of {ok, {Socket, Address, Creation}} -> - inet:setopts(Socket, [{packet, 4}, {nodelay, true}]), + inet:setopts(Socket, [{packet, 4}, {read_ahead, false}, {nodelay, true}]), {ok, {Socket, Address#net_address{protocol=?PROTOCOL}, Creation}}; Other -> Other @@ -633,6 +633,7 @@ do_setup_connect(Driver, Kernel, Node, Address, Ip, TcpPort, Version, Type, MyNode, Timer) -> case ssl:connect( Ip, TcpPort, [binary, {active, false}, {packet, 4}, + {read_ahead, false}, {nodelay, true}, {server_name_indication, Address}, Driver:family(), {nodelay, true}] ++ Opts, net_kernel:connecttime() -- 2.43.0
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