Re: nullmailer failing with gnutls >= 3.6.3 under Debian

"harald.a-little-linux-box.at via nullmailer" <[email protected]> Fri, 12 Oct 2018 07:46:07 +0200 (CEST)
Newsgroups gmane.mail.nullmailer
Message-ID <[email protected]>
> Thanks. I've added a loop to the relevant function in nullmailer:
>=20
> diff --git a/lib/fdbuf/tlsibuf.cc b/lib/fdbuf/tlsibuf.cc
> index 787c323..24b94bd 100644
> --- a/lib/fdbuf/tlsibuf.cc
> +++ b/lib/fdbuf/tlsibuf.cc
> @@ -27,5 +27,10 @@ tlsibuf::tlsibuf(gnutls_session_t s, unsigned bufsz)
> =20
>  ssize_t tlsibuf::_read(char* buf, ssize_t len)
>  {
> -  return gnutls_record_recv(session, buf, len);
> +  int rc;
> +  do
> +  {
> +    rc =3D gnutls_record_recv(session, buf, len);
> +  } while (rc =3D=3D GNUTLS_E_AGAIN);
> +  return rc;
>  }

Thanks - are you planning to release a new version of nullmailer for this p=
atch or do you want to wait until more code changes?

>=20
>=20
> --=20
> Bruce Guenter <[email protected]>                https://untroubled.or=
g/
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>=20
>=20