From 6ded7de0b591627b3a5e2ccd6e97e3dd82ccb192 Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 4 Mar 2021 14:00:26 +0000 Subject: [PATCH] Simply ignore errors from tls_close(). ftp(1) does the same and it seems too many servers out there fail to properly close the TLS session which results in unneccessary warnings like TLS close: EOF without close notify Result of a discussion with job@ and tb@ --- usr.sbin/rpki-client/http.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/usr.sbin/rpki-client/http.c b/usr.sbin/rpki-client/http.c index cb2d9dc344d..0e84c0b5c43 100644 --- a/usr.sbin/rpki-client/http.c +++ b/usr.sbin/rpki-client/http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: http.c,v 1.1 2021/03/04 13:01:41 claudio Exp $ */ +/* $OpenBSD: http.c,v 1.2 2021/03/04 14:00:26 claudio Exp $ */ /* * Copyright (c) 2020 Nils Fisher * Copyright (c) 2020 Claudio Jeker @@ -328,11 +328,8 @@ http_close(struct http_connection *conn) case TLS_WANT_POLLOUT: return WANT_POLLOUT; case 0: - break; case -1: - warnx("%s: TLS close: %s", http_info(conn->url), - tls_error(conn->tls)); - return -1; + break; } } -- 2.20.1