Comments (2)
#define NGX_XQUIC_HEALTH_CHECK_REQ "UDPSTATUS"
#define NGX_XQUIC_HEALTH_CHECK_RSP "UDPOK"
请求报文含magic string "UDPSTATUS",tengine会回包"UDPOK"
from tengine.
感谢解答~ 我发现我们健康检查的探测报文并不能通过。看了下ngx_xquic_recv.c中 会对udp报文做一个简单的头检测
` /* check QUIC magic bit */
if (!NGX_XQUIC_CHECK_MAGIC_BIT(packet->buf)) {
ngx_log_error(NGX_LOG_WARN, c->log, 0,
"|xquic|invalid packet head|");
return;
}
#define NGX_XQUIC_CHECK_MAGIC_BIT(pos) (((*(pos)) & 0x40) == 0x40)
`
看起来是需要第一个字符的第二个二进制位是1才行。我看字母都是在这个区间,但是数字不行,我测试了一下也确实如此。
不知道咱们后续有没有考虑优化这块健康检查逻辑?在头检测前先进行healcheck?
以及后续将健康检查报文配置化?这样方便我们自定义配置~
from tengine.
Related Issues (20)
- Tengine 3.1.0 中 ngx_http_upstream_check_module 和 ngx_http_upstream_dynamic_module 配合使用 Bug HOT 1
- Tengine属于信创软件吗? HOT 3
- Support ssl_ciphers with Chinese SM2, SM3, SM4, ZUC and etc. in HTTP3 HOT 1
- tengine+xquic+tongsuo+QAT性能无提升
- YoReader 404 Not found HOT 2
- tengine ipv6 resolv.conf
- Tengine/3.1.0 + Tongsuo-8.4.0 +国密证书+国际证书:加上ssl_reject_handshake on 时国密无法连接。
- Project dead? HOT 3
- dyups module: 多worker问题场景下worker挂掉后新拉齐的worker是否有之前动态加载的upstream数据? HOT 1
- upstream_addr 字段 打印多个端口的问题。
- What are the advantages of using ngx_ingress_module over ngx_http_lua_module? HOT 2
- quikc start get some other vendor module error HOT 5
- 多次reload后,产生多个日志进程不释放 HOT 3
- 500 HOT 2
- qat fw_counter计数不增长,停留在0值。 HOT 5
- [BUG] SSL_read bad length when upload 2.9GB file HOT 3
- kernel: dh895xcc 0000:60:00.0: Process nginx exit with orphan rings HOT 5
- Tengine支持的底层lib最新版本 HOT 4
- bug: 日志文件出现"async del conn epoll_ctl",文件fd出现泄漏吗? HOT 1
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 tengine.