| 98 | } |
| 99 | |
| 100 | void connect_manager::set_idle_ttl(time_t ttl) |
| 101 | { |
| 102 | lock_guard guard(lock_); |
| 103 | idle_ttl_ = ttl; |
| 104 | for (manager_it it = manager_.begin(); it != manager_.end(); ++it) { |
| 105 | for (pools_it it2 = it->second->pools.begin(); |
| 106 | it2 != it->second->pools.end(); ++it2) { |
| 107 | (*it2)->set_idle_ttl(ttl); |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | void connect_manager::init(const char* default_addr, const char* addr_list, |
| 113 | size_t count, int conn_timeout /* 30 */, int rw_timeout /* 30 */, |
no test coverage detected