AsyncTCP icon indicating copy to clipboard operation
AsyncTCP copied to clipboard

Make event queue size adjustable via Kconfig

Open mkfrey opened this issue 2 years ago • 1 comments

Fixes #121

mkfrey avatar Aug 16 '21 13:08 mkfrey

Can confirm, this helps in my case - changing the queue size to to 512 made the difference between the server sometimes dying while serving on 200kB files to successfully serving >1MB files with no faults.

In case someone else reading is using platformio, here's how to use the code in this PR before it's merged in:

platformio.ini:

lib_deps = 
  https://github.com/mkfrey/AsyncTCP#kconfig_queue_size
  ESP Async WebServer

build_flags = -DCONFIG_ASYNC_TCP_EVENT_QUEUE_SIZE=512

nietaki avatar Sep 29 '21 12:09 nietaki