You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It fails in the constructor of the server due to asio::ip::address::from_string and throws an exception, therefore never a notification will be sent in run() and wait_for_server_start() waits forever.
In general I think a overload for wait_for_server_start(1s) with a overload for a timeout would be useful, i think there are a lot of cases where one would like to fail if it does not become ready in a certain time
Is there a way to achieve something with the current crow implementation?
Somehow config errors are suppressed if the the server runs in async mode.
For example if i'm using a invalid
.bindaddr("127.0.0")
. If used with.run()
i get a exception(maybe not the greatest exception but good enough)
If i do the same with
.run_async()
it just hangs onwait_for_server_start()
with out any exceptions.Is that on purpose?
Is there a way to wait or crash or maybe find out if the server crashed?
Am i holding it wrong? 😅
Full example:
The text was updated successfully, but these errors were encountered: