Update yasio to latest

This commit is contained in:
halx99 2023-04-17 00:28:05 +08:00
parent 6b9d5fe32d
commit 16ce534635
2 changed files with 1 additions and 2 deletions

View File

@ -124,7 +124,6 @@ HttpClient::HttpClient()
_service = new yasio::io_service(HttpClient::MAX_CHANNELS);
_service->set_option(yasio::YOPT_S_FORWARD_PACKET, 1); // forward packet immediately when got data from OS kernel
_service->set_option(yasio::YOPT_S_AUTO_DISPATCH, 1); // auto dispatch on io_service worker thread
_service->set_option(yasio::YOPT_S_DNS_QUERIES_TIMEOUT, 3);
_service->set_option(yasio::YOPT_S_DNS_QUERIES_TRIES, 1);
_service->start([this](yasio::event_ptr&& e) { handleNetworkEvent(e.get()); });

View File

@ -30,7 +30,7 @@ USING_NS_AX;
using namespace ax::network;
#define CHROME_UA \
"User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.5359.125 " \
"User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 " \
"Safari/537.36"
HttpClientTests::HttpClientTests()