On Thu, 01 Jun 2023 18:14:40 +0100 David Howells wrote: > The answer then might be to make TLS handle a zero-length send() IDK. Eric added MSG_SENDPAGE_NOTLAST 11 years ago, to work around this exact problem. Your refactoring happens to break it and what you're saying sounds to me more or less like "MSG_SENDPAGE_NOTLAST is unnecessary, it's user's fault". A bit unconvincing. Maybe Eric would chime in, I'm not too familiar with the deadly mess of the unchecked sendmsg()/sendpage() flags.