Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0741-ssl-negotiated_protocol-can-return-error-c...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0741-ssl-negotiated_protocol-can-return-error-closed.patch of Package erlang
From 26e8ddf3ab516560a132e0a8de34b3fe984bd73c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= <essen@ninenines.eu> Date: Tue, 23 May 2023 17:58:15 +0200 Subject: [PATCH] ssl:negotiated_protocol can return {error,closed} The function ssl_gen_statem:call/2 will return `{error,closed}` when the process is not alive. --- lib/ssl/src/ssl.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ssl/src/ssl.erl b/lib/ssl/src/ssl.erl index 0a1db06804..26106d7fe8 100644 --- a/lib/ssl/src/ssl.erl +++ b/lib/ssl/src/ssl.erl @@ -999,7 +999,7 @@ peercert(#sslsocket{pid = {_Listen, #config{}}}) -> -spec negotiated_protocol(SslSocket) -> {ok, Protocol} | {error, Reason} when SslSocket :: sslsocket(), Protocol :: binary(), - Reason :: protocol_not_negotiated. + Reason :: protocol_not_negotiated | closed. %% %% Description: Returns the protocol that has been negotiated. If no %% protocol has been negotiated will return {error, protocol_not_negotiated} -- 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