Return True if the OpenSSL.SSL.SysCallError is a ragged EOF.
(exc: BaseException)
| 97 | |
| 98 | |
| 99 | def _ragged_eof(exc: BaseException) -> bool: |
| 100 | """Return True if the OpenSSL.SSL.SysCallError is a ragged EOF.""" |
| 101 | return exc.args == (-1, "Unexpected EOF") |
| 102 | |
| 103 | |
| 104 | # https://github.com/pyca/pyopenssl/issues/168 |