Consider packaging inbuf when about to send an end cell
When we have data we could package from the inbuf, but we're about to send a relay end cell, we don't consider packaging the data. This can degrade performance/correctness of programs that do stuff like sending RSTs when they should be sending FINs.
Reported pseudonymously. This has been an issue with basically all versions of Tor AFAICT, so at least it's not a recent regression.