-
Notifications
You must be signed in to change notification settings - Fork 700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pistache server URL is not reatcheable after remove and add route #1103
Comments
Please edit the above comment to fix the line-wrap on the stack trace. I agree that being able to edit the routes live would be a really nice feature. If the API is there, then it should work. The most useful thing to do would be to create a PR (pull request) that adds a (currently crashing) unit test that replicates the above. Someone else can then get your PR onto their development box and dig into the problem. |
All,
Here i'm excepted that both URL 1 and 2 mode 2 should be reachable which is not the case, so i believe that the issue is here. Please note that the Router::remove API is not tested as a unit, which may explain why this issue was not detected previously. All thanks you in advance for your assistance. |
To make the route mutable please use iso Please note that the API is not thread safe, you can refer the example of arghness if need a thread safe API |
Dear All,
I would like to implement a server where i add and remove routes dynamically without rebooting server.
Below the example
Each time i call the function Routes::Remove via Server::SwitchMode(), i end with exception :
terminate called after throwing an instance of 'std::runtime_error'
what(): Requested does not exist.
Aborted (core dumped)
Below the back trace 👍
`(gdb) bt
The problem is in line 233 file src/server/router.cc.
I would like to know if i' m using the correct syntax Routes::remove ? If no then i guess this can be a possible issue in the pistache server and need to be fixed.
Thanks.
The text was updated successfully, but these errors were encountered: