From: Eric Wong Date: Tue, 17 Jun 2025 00:13:33 +0000 (+0000) Subject: tls: shorten warning $SSL_ERROR prefix X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d02f67a28c4c86ce4e10b0dbdf2349fa59b9449;p=thirdparty%2Fpublic-inbox.git tls: shorten warning $SSL_ERROR prefix Use our usual `W:' warning prefix here since the stringified form of the $SSL_ERROR magic variable will be something like: "SSL read error error:xxx:SSL routines:SSL_shutdown:shutdown while in init" and we don't need to be mentioning `SSL' ourselves. --- diff --git a/lib/PublicInbox/TLS.pm b/lib/PublicInbox/TLS.pm index 9a829deff..259123060 100644 --- a/lib/PublicInbox/TLS.pm +++ b/lib/PublicInbox/TLS.pm @@ -14,7 +14,7 @@ sub err () { $SSL_ERROR } sub epollbit () { return EPOLLIN if $SSL_ERROR == SSL_WANT_READ; return EPOLLOUT if $SSL_ERROR == SSL_WANT_WRITE; - carp "unexpected SSL error: $SSL_ERROR"; + carp "W: $SSL_ERROR"; undef; }