Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CCT-176: Do not wait until the server closes the TLS connection
* Card ID: CCT-176 * Card ID: RHEL-17345 The TLS specification (e.g. RFC 5246 # 7.2.1) says that when two parties are closing the connection, they should both send `close_notify` alert before closing their read channel. Candlepin is migrating to Quarkus which does not send these messages. This makes subscription-manager hang during the `.sock.unwrap()` because it waits for the message until it timeouts. The easiest solution is to do not try to do any kind of handling directly and leave it to the standard library. This solution was verified by the Candlepin developers.
- Loading branch information