Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/tls: Wait for data_{source,sink}::close()
Fixes scylladb#799 data_{source,sink}::close() return a future. If it is not ready on close() return, then the current tls session close() may result in use after free. Converting close_after_shutdown() to a coroutine and sequentially co_awaiting on close() addresses this issue. The waiting is done sequentially, as this is shutdown path anyway.
- Loading branch information