| 6584 | } |
| 6585 | |
| 6586 | void session_impl::update_socket_buffer_size() |
| 6587 | { |
| 6588 | for (auto const& l : m_listen_sockets) |
| 6589 | { |
| 6590 | error_code ec; |
| 6591 | set_socket_buffer_size(l->udp_sock->sock, m_settings, ec); |
| 6592 | #ifndef TORRENT_DISABLE_LOGGING |
| 6593 | if (ec && should_log()) |
| 6594 | { |
| 6595 | session_log("listen socket buffer size [ udp %s:%d ] %s" |
| 6596 | , l->udp_sock->sock.local_endpoint().address().to_string().c_str() |
| 6597 | , l->udp_sock->sock.local_port(), print_error(ec).c_str()); |
| 6598 | } |
| 6599 | #endif |
| 6600 | ec.clear(); |
| 6601 | set_socket_buffer_size(*l->sock, m_settings, ec); |
| 6602 | #ifndef TORRENT_DISABLE_LOGGING |
| 6603 | if (ec && should_log()) |
| 6604 | { |
| 6605 | session_log("listen socket buffer size [ tcp %s:%d] %s" |
| 6606 | , l->sock->local_endpoint().address().to_string().c_str() |
| 6607 | , l->sock->local_endpoint().port(), print_error(ec).c_str()); |
| 6608 | } |
| 6609 | #endif |
| 6610 | } |
| 6611 | } |
| 6612 | |
| 6613 | void session_impl::update_dht_announce_interval() |
| 6614 | { |
nothing calls this directly
no test coverage detected