IIInsomnia
V2EX  ›  Rust

问一个 Axum 的高并发问题

  •  
  •   IIInsomnia · Oct 12, 2024 · 2578 views
    This topic created in 601 days ago, the information mentioned may be changed or developed.

    最近自测的时候发现 Axum 在稍高并发的时候会出现connection refused,看到一篇文章,说是需要调整hypermax_concurrent_streams值,但 Axum 似乎未暴露相应方法,有没有大佬遇到过类似的问题,求解答

    2 replies    2024-10-13 10:14:57 +08:00
    IIInsomnia
        1
    IIInsomnia  
    OP
       Oct 12, 2024
    PTLin
        2
    PTLin  
       Oct 13, 2024
    看了下,把库 clone 下来然后改一下代码就行,也不麻烦 https://docs.rs/axum/latest/src/axum/serve.rs.html#256
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1077 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 23:20 · PVG 07:20 · LAX 16:20 · JFK 19:20
    ♥ Do have faith in what you're doing.