Corentin Schreiber
Corentin Schreiber
Note that if the route is defined as just ```c++ CROW_CATCHALL_ROUTE(app)([]() { return "Not found"; }); ``` ... then the body does get sent (very last line): ``` $ curl...
I tried comparing the behavior of Crow in both cases (catch-all and static route) to understand the difference. First, I noticed that the catch-all handler is called very early, in...
The problem isn't the incomplete request, however. I think it has to do, somehow, with the use of asynchronous operations here in both `do_write()` and `do_read()`: https://github.com/CrowCpp/Crow/blob/13a91a1941fbabfc289dddcdeab08b80193f7c6c/include/crow/http_connection.h#L424-L430 If I add...
For reference, here's the code I used for the synchronous `do_write()`: https://github.com/CrowCpp/Crow/commit/45d53978a4c038ce7c04bc5cfb2c0a0d4c3cfbca, and here's the synchronous `do_read()`: https://github.com/CrowCpp/Crow/commit/1dfc42c34cd0e55adc415869ac368d779125b55f.
As an alternative, we now have our own `constexpr`-friendly code to do number-to-string conversions. On clang++-17 with libc++-17, I get the following relative performance (lower is better): | | Debug...
@willwray Since you contributed the original meson scripts, I was wondering if you were interested in updating this. It might not be hard, but I haven't yet climbed the learning...
Thank you @topazus for contributing the changes to implement the first item in the list. This leaves us with the second item (whether to limit the scripts to build one...
Apparently, "catch and continue" is impossible within the same process. We would need to run each test into a sub-process, which is what Google Test does to support "death tests"....
https://github.com/cschreib/snatch/pull/38 will nonetheless switch `REQUIRE()` to call `std::terminate()` when exceptions are disabled, because `return` is not reliable enough (when called in functions and not in test cases). Adding support for...