If you're on loopback and you'd like to close that gap, you need to turn
on SIO_LOOPBACK_FASTPATH. I've no idea if ASIO can do that for you, I'm
still on a pre-churn ASIO. An alternative is to bind to a real NIC, and
not go via loopback.


You can set any option you want on the underlying socket with socket::native_handle()

https://www.boost.org/doc/libs/1_75_0/doc/html/boost_asio/reference/basic_stream_socket/native_handle.html
 
--
Richard Hodges
office: +442032898513
home: +376841522
mobile: +376380212