-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Setting a Custom 404 Page #517
Comments
1、HttpServer.run() will occupy current thread to run, but HttpServer.start() will create another thread to run. |
I use /MD build on Windows. /MT build cause error with UE5. You used |
If you use server.setThreadNum(4); with server.run(); that will create 3 threads + current thread to run event loops,if server.start(), that will create 4 threads to run event loops, not occupy current thread. |
gave expected correct result. Only problems are
I think they are about Unreal Engine 5. Some more exprienced developers said sometimes there could be clashes between third party libraries' memory system and Unreal's. But I commented out |
Hi, I have some questions about LibHv after integrating it to Unreal Engine 5.
what is the difference between
server.start();
andserver.run();
If I use
auto Callback_Router_Handler = [this](const HttpRequestPtr& Request, const HttpResponseWriterPtr& Response) {};
as callbackhv::async::cleanup();
even if I useserver.stop()
?Because project crashes with that callback if I also use that
async::cleanup()
after restarting UE5 gameplay.Request->get()->GetParams();
after restarting Unreal Engine 5 gameplay.It gives an error about
freeing memory
. So, I need to directly access variables likeconst hv::QueryParams Querries = this->RequestPtr->get()->query_params;
router.Static("/", path_root),
How can I set a custom 404 page ?The text was updated successfully, but these errors were encountered: