It seems that gemserv never sends a proper TLS shutdown (application close). This means that hard disconnects may be undetected and pages silently truncated.
There is a proposal to make these TLS shutdowns mandatory https://gitlab.com/gemini-specification/protocol/-/issues/2
It's been added to the dev branch. Thank you.