James Keane 338a028185
fix(server): awaitsendFile (#5515)
Fixes the intermittent EPIPE errors that myself and others are seeing.

By explicitly returning a promise we ensure the caller correctly waits until the `sendFile` is complete before potentially closing or cleaning the socket. This is the most likely bug that would cause EPIPE errors.

Fix was confirmed on a live system -- would benefit from a unit test
though.
2023-12-06 20:51:51 -05:00
..
2023-11-30 14:59:47 -06:00
2023-12-06 20:51:51 -05:00
2023-08-16 22:50:01 -05:00
2023-08-16 22:50:01 -05:00
2023-11-30 14:59:47 -06:00