chriskohlhoff / asio

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

allow change the size #1415

Closed qicosmos closed 10 months ago

qicosmos commented 10 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.