valyala/fasthttp

Request should not fail on small ReadBufferSize

クローズ

#1,873 opened on 2024/09/24

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)Go (1,755 件のフォーク)batch import
help wantedwontfix

Repository metrics

Stars
 (21,741 個のスター)
PR merge metrics
 (平均マージ 3d) (30d で 44 merged PRs)

説明

Can we not fail request if the req/resp header size is greater than the read buffer size.

I can see a bufio bug was mentioned for tryRead function but looks like it's resolved now. Can we have the above mentioned behaviour?

Also, some callback could also be configured to inform that buffer size was low. Library users could emit metrics and increase the buffer size appropriately to have best balance between memory usage and CPU usage.

@valyala Could you review the request?

コントリビューターガイド