matrix-public-archive/server/hydrogen-render
Eric Eastwood 13eb92b067
Make sure we finish sending the HTML payload before we exit the process (#38)
I encountered a page which responded successfully but all of the Hydrogen HTML was missing. It just had the boilerplate around it.

What I am guessing happened is that since `process.send` is async, with a sufficiently large
payload and race condition, `process.exit(0)` was being called before it finished sending.

Related:
 - https://stackoverflow.com/questions/34627546/process-send-is-sync-async-on-nix-windows
 - 56d9584a0e
 - https://github.com/nodejs/node/issues/6767
2022-07-06 19:24:29 -05:00
..
1-render-hydrogen-to-string.js Make sure we finish sending the HTML payload before we exit the process (#38) 2022-07-06 19:24:29 -05:00
2-render-hydrogen-to-string-fork-script.js Make sure we finish sending the HTML payload before we exit the process (#38) 2022-07-06 19:24:29 -05:00
3-render-hydrogen-to-string-unsafe.js Make sure we finish sending the HTML payload before we exit the process (#38) 2022-07-06 19:24:29 -05:00