Hold the outpub_write mutex until the data is send, not just until it is
removed from the ring buffer. This prevents the session thread from closing the socket before send() is called with the data. Fixed issue seen on techdorks.net with the 404.ssjs file (and likely others where static files were truncated on send).
Showing with 1 addition and 1 deletion