chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.72k stars 1.19k forks source link

allow change the size #1415

Closed qicosmos closed 5 months ago

qicosmos commented 5 months ago

change default_max_transfer_size_t for io_uring file, because the default max size is not enough.

usage:

#define ASIO_SPEC_MAX_TRANSFER_SIZE 262144

read/read_at io_uring file will apply the value of default_max_transfer_size to ASIO_SPEC_MAX_TRANSFER_SIZE.