mirror of https://github.com/rwf2/Rocket.git
8749d7293a
This surfaced a dormant concurrency related issue. Prior to this commit, the router used `routed_segments()` to retrieve the path segments of the request. This was okay as there was no route in the request, and matched segments were retrieved eagerly. This commit makes segment matching lazy, so no matching occurs if unnecessary. Between two matches, a `route` is atomically set of `Request`. This is now visible in `routed_segments()`, which should not have considered the current route in the first place. This was fixed. |
||
---|---|---|
.. | ||
codegen | ||
http | ||
lib |