Closed ScuroGuardiano closed 4 months ago
I believe this is fixed. Unfortunately, I haven't found a reliable way to automatically test this yet, as locally, even with a large buffer, it can succeed. There's probably some socket option that would help trigger this more reliably. But, at least with some manual testing, I was initially able to reproduce it, and now I can't (and I'm pretty sure I correct identified the cause of the issue).
Sorry you ran into this.
I can confirm, last commit fixed the issue.
Thank you for quick reaction <3
Hello there,
when I assign a lot of data to
res.body
at the end of a handler, the body is not sent, in insomnia I get an error and, what's worse, the memory allocated withres.arena
is not freed. However, if I manually callres.write()
then everything works perfectly. Here's code with minimal example of this problem:I also tried to use curl
curl http://localhost:1337/ -v | hexdump
and it just hangs after downloading about 10MB of data. But if I addtry res.write()
at the end of the handler then it works perfectly.