| 173 | } |
| 174 | |
| 175 | ~TCPSocketPool() override { |
| 176 | timer.stop(); |
| 177 | auto th = collector; |
| 178 | collector = nullptr; |
| 179 | photon::thread_interrupt((photon::thread*)th); |
| 180 | photon::thread_join((photon::join_handle*)th); |
| 181 | for (auto& l : fdmap) { |
| 182 | l.second.delete_all(); |
| 183 | } |
| 184 | delete ev; |
| 185 | } |
| 186 | |
| 187 | ISocketStream* connect(const char* path, size_t count) override { |
| 188 | LOG_ERROR_RETURN(ENOSYS, nullptr, |
nothing calls this directly
no test coverage detected