IIInsomnia
V2EX  ›  Rust

问一个 Axum 的高并发问题

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

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

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