| 383 | } |
| 384 | |
| 385 | inline ~TConnection() { |
| 386 | if (!!Socket && IsNotSocketClosedByOtherSide(*Socket)) { |
| 387 | if (!!Ssl) { |
| 388 | ResetBIO(); |
| 389 | // do not wait for shutdown confirmation |
| 390 | Y_UNUSED(SSL_shutdown(Ssl.Get())); |
| 391 | } |
| 392 | } |
| 393 | ConnectionCache()->ActiveConnections.Dec(); |
| 394 | } |
| 395 | |
| 396 | void ResetBIO() { |
| 397 | if (!!Socket) { |
nothing calls this directly
no test coverage detected