actix / actix/actix-web

Make a decision whether we should enable `TCP_NODELAY` by default or not

オープン
#3,917 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
24.8k
フォーク
1.9k
平均マージ
23時間 10分
マージ済み PR(30日)
26

説明

> The problem here should be related to Nagle’s algorithm, i.e. the `TCP_NODELAY` option.
> On Node.js, it's enabled by default: https://nodejs.org/api/http.html#httpcreateserveroptions-requestlistener
> On actix-web (actix-http), it's disabled by default (no config).
> I've tested on your benchmark and confirmed enabling it via `actix_tls` resolved the latency difference.
> Maybe we should make it enable by default, but it's a behavior change and should happen on major release.
> For now, I'm going to add a helper method to enable it easily.

_Originally posted by @JohnTitor in [#3841](https://github.com/actix/actix-web/issues/3841#issuecomment-3883169095)_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。