Documentation does not mention stack requirements
- 主要言語
- C++
- スター
- 4.8k
- フォーク
- 694
- 平均マージ
- 12時間 48分
- マージ済み PR(30日)
- 1
説明
```read``` or ```async_read``` operations may require "large" amounts of stack. The documentation should acknowledge this.
Example: https://github.com/boostorg/beast/blob/ffbe65f4c922e1b8d76e85434d0a8d3ee1c083e9/include/boost/beast/http/impl/basic_parser.ipp#L486
If the parser is used inside of a stackful coroutine, this may easily lead to stack overflow. A coroutine stack size is architecture dependent and the user may choose a size that is smaller than the default(64k IIRC), but the size should be at least ``` SIGSTKSZ```, which happens to be ```8196``` bytes on linux-amd64.
Additional related thing to consider: with split stacks enabled a large stack allocation might not necessarily improve performance over a dynamically allocated buffer.
コントリビューションガイド
評価
この issue はまだ評価されていません。