From 1d02f67a28c4c86ce4e10b0dbdf2349fa59b9449 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 17 Jun 2025 00:13:33 +0000 Subject: [PATCH] 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. --- lib/PublicInbox/TLS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2