valyala/fasthttp

Request should not fail on small ReadBufferSize

已關閉

#1,873 建立於 2024年9月24日

 (4 則留言) (0 個反應) (0 位負責人)Go (1,755 個分叉)batch import
help wantedwontfix

倉庫指標

星標
 (21,741 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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?

貢獻者指南