mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
proxyserver: enable keep alive packets
This commit is contained in:
1 parent
9ae3d3c4d4
commit
1a67140463
1 file changed
+1
@@ -341,6 +341,7 @@ DhtProxyServer::addServerSettings(ServerSettings& settings, const unsigned int m
|
||||
// socket options
|
||||
settings.socket_options_setter([](auto & options){
|
||||
options.set_option(asio::ip::tcp::no_delay{true});
|
||||
options.set_option(asio::socket_base::keep_alive{true});
|
||||
});
|
||||
settings.connection_state_listener(connListener_);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user