4 ms·
Expired files aren't really cleanly handled, the handler code just crashes when trying to access the non-existing file and prints a trace https://0x0.st/-L59.t
by pantalaimon 4y ago
Expired files aren't really cleanly handled, the handler code just crashes when trying to access the non-existing file and prints a trace
https://0x0.st/-L59.txt https://0x0.st/-L59.txt
- tyingq 4y agoThat's interesting, as the error calls out "at fhost.c:139". There is no "fhost.c" in the repo, though there is an fhost.py. https://git.0x0.st/mia/0x0 https://git.0x0.st/mia/0x0 Ah, I see. If I go back to an old version of fhost.py, the error you're seeing is just a big hardcoded string. So there is a deliberate handler, made to look like a crash. Strange. def notfound(e): return u"""<pre>Process {0} stopped * thread #1: tid = {0}, {1:#018x}, name = '{2}' frame #0: Process {0} stopped * thread #8: tid = {0}, {3:#018x} fhost`get(path='{4}') + 27 at fhost.c:139, name = 'fhost/responder', stop reason = inv... https://github.com/mia-0/0x0/blob/714de58180072a5563ae1f3d96b8697892f20506/fhost.py#L366 https://github.com/mia-0/0x0/blob/714de58180072a5563ae1f3d96...
- oefrha 4y agoNo need to go to an old version, it's in templates/404.html at the moment: https://github.com/mia-0/0x0/blob/c2b5e95903053d084ce9208a2e96226e9f5feebd/templates/404.html https://github.com/mia-0/0x0/blob/c2b5e95903053d084ce9208a2e... Quite interesting.
- tyingq 4y agoAh, yep. With some "enhancements" too :) {% set pid = range(20,100)|random %} <pre>Process {{ pid }} stopped