Comments (4)
1、HttpServer.run() will occupy current thread to run, but HttpServer.start() will create another thread to run.
2、Crash? Do you use /MD or /MT on windows? /MT may cause this case.
3、You can set HttpService::errorHandler to response a custom error page.
from libhv.
1、HttpServer.run() will occupy current thread to run, but HttpServer.start() will create another thread to run. 2、Crash? Do you use /MD or /MT on windows? /MT may cause this case. 3、You can set HttpService::errorHandler to response a custom error page.
I use /MD build on Windows. /MT build cause error with UE5.
You used server.setThreadNum(4);
with server.run();
If run occupy current thread, what is the goal of giving thread number ?
from libhv.
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.
from libhv.
Related Issues (20)
- make the function more applicable HOT 1
- Error when Linking WebSocket Client Example with libhv_static Library HOT 1
- iocp.c文件iowatcher_poll_events函数中结构体强转问题 HOT 1
- http post请求 HOT 3
- Why not http/websocket client callback error when it fails? HOT 1
- TCP服务器无法获取包的正确长度 HOT 1
- 请问有无进程间的通信功能? HOT 1
- Consider Supporting Bazel Build System HOT 2
- Regarding whether the channel encapsulates sendmsg() and recvmsg() functions HOT 3
- hv crash when use as a library in linux HOT 9
- 支持mqtt server吗? HOT 2
- ld.lld: error: undefined symbol: http_client_send_async(http_client_s*, std::__1::shared_ptr<HttpRequest>, std::__1::function<void (std::__1::shared_ptr<HttpResponse> const&)>) HOT 2
- HTTP返回中默认header的Server字段会填上httpd/1.3.2(当前hv版本号), 会被安全扫描软件误认为是apache http server报错 HOT 2
- UE5 LibHv Plugin Release
- 关于Windows下中文路径的问题 HOT 1
- Question about async dns HOT 2
- libhv的GetCookie问题 HOT 1
- does bin/httpd reverse proxy mode follow location HOT 3
- Buffer overflow when using reverse proxy via HttpService::Proxy HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libhv.