]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/TLS.pm
config: support "inboxdir" in addition to "mainrepo"
[public-inbox.git] / lib / PublicInbox / TLS.pm
index 576c11d7cc0f917c70c646a98254eb3146306827..0b9a55dfd237c22bfd1aa24c3b9bdeef9cd447ff 100644 (file)
@@ -13,12 +13,9 @@ sub err () { $SSL_ERROR }
 
 # returns the EPOLL event bit which matches the existing SSL error
 sub epollbit () {
-       if ($! == EAGAIN) {
-               return EPOLLIN if $SSL_ERROR == SSL_WANT_READ;
-               return EPOLLOUT if $SSL_ERROR == SSL_WANT_WRITE;
-               die "unexpected SSL error: $SSL_ERROR";
-       }
-       0;
+       return EPOLLIN if $SSL_ERROR == SSL_WANT_READ;
+       return EPOLLOUT if $SSL_ERROR == SSL_WANT_WRITE;
+       die "unexpected SSL error: $SSL_ERROR";
 }
 
 1;