Closed nqf closed 1 year ago
@an-tao 不考虑增加这个设置吗
I prefer to add getFd() method to the TcpConnection class. what do you think?
I prefer to add getFd() method to the TcpConnection class. what do you think?
我最终目的是期望可以在drogon中httpclient设置它,有办法在drogon中设置它吗,我们将drogon服务部署到aws上面了,但是aws nlb默认350秒会切断连接,所以需要设置自己的keepalive间隔
httpclient要增加API处理getFd拿到的描述符
httpclient要增加API处理getFd拿到的描述符
最好是可以提供一些回调 或者 构造参数之类的
auto http_client_ptr = drogon::HttpClient::newHttpClient();
http_client_ptr->setsockopt([](int fd) {
//
});
Sometimes we need to set these three values, But we are unable to modify the system configuration, Currently, the trantor does not provide an interface to set it up