Re: [PATCH] tls: don't abort the connection on signal-interrupted sends

From: Jakub Kicinski

Date: Thu Jul 23 2026 - 14:52:30 EST


On Thu, 23 Jul 2026 20:38:27 +0200 Maximilian Immanuel Brandtner wrote:
> > > +static bool tls_is_non_restartable_err(int err)
> > > +{
> > > + if (err >= 0)
> > > + return false;
> >
> > This doesn't belong in a helper for classifying errors.
>
> So you would prefer if (rc < 0 && !tls_is_restartable_err(rc))

Yup.