Opened 23 months ago
Last modified 23 months ago
#2445 closed defect
Nginx event "blocking" in H2 — at Initial Version
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | documentation | Version: | 1.18.x |
Keywords: | HTTP2 | Cc: | |
uname -a: | |||
nginx -V: |
nginx version: nginx/1.18.0
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) built with OpenSSL 1.1.1r-dev xx XXX xxxx TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --with-openssl=/home/ly257097/openssl |
Description
I found that nginx event cycle could be "blocked” when using H2 because of concurrent streams .
For example, when Nginx’s maximum concurrent streams is 128, if the client sends 128 requests at the same time, nginx will receive 128 requests, and will process 128 requests in one event callback (function ngx_http_v2_read_handler).It’s about 20 milliseconds to processing 128 requests, which means that other connection events will be delayed by 20 milliseconds.
If the number of concurrency is more, it will be worse. how to solve this problem? Thank you.
Note:
See TracTickets
for help on using tickets.