| 376 | |
| 377 | struct TConnection { |
| 378 | inline TConnection(TSocketRef& s, const TResolvedHost host) noexcept |
| 379 | : Socket(s) |
| 380 | , Host(host) |
| 381 | { |
| 382 | ConnectionCache()->ActiveConnections.Inc(); |
| 383 | } |
| 384 | |
| 385 | inline ~TConnection() { |
| 386 | if (!!Socket && IsNotSocketClosedByOtherSide(*Socket)) { |
nothing calls this directly
no test coverage detected