nginx quic出现curl: (55) ngtcp2_conn_writev_stream returned error: ERR_DRAINING

  • Host pan.hetao.me:443 was resolved.
  • IPv6: (none)
  • IPv4: 192.168.33.20
  • Trying 192.168.33.20:443…
  • QUIC cipher selection: TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_CCM_SHA256
  • CAfile: /etc/ssl/certs/ca-certificates.crt
  • CApath: /etc/ssl/certs
  • subjectAltName: host “pan.hetao.me” matched cert’s “*.hetao.me”
  • Verified certificate just fine
  • Connected to pan.hetao.me (192.168.33.20) port 443
  • using HTTP/3
  • [HTTP/3] [0] OPENED stream for https://pan.hetao.me/
  • [HTTP/3] [0] [:method: GET]
  • [HTTP/3] [0] [:scheme: https]
  • [HTTP/3] [0] [:authority: pan.hetao.me]
  • [HTTP/3] [0] [:path: /]
  • [HTTP/3] [0] [user-agent: curl/8.6.0-DEV]
  • [HTTP/3] [0] [accept: /]
    GET / HTTP/3
    Host: pan.hetao.me
    User-Agent: curl/8.6.0-DEV
    Accept: /

  • ngtcp2_conn_writev_stream returned error: ERR_DRAINING

  • Connection #0 to host pan.hetao.me left intact
    curl: (55) ngtcp2_conn_writev_stream returned error: ERR_DRAINING

解决:
listen后面添加reuseport参数

    listen 443 quic reuseport;
    listen       443 ssl;
    listen [::]:443 quic reuseport;
    listen       [::]:443 ssl;

发表回复