On this page
  1. ssl.SSLWantReadError
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

ssl.SSLWantReadError

Prev: ssl.SSLSyscallError | Up: ssl | Next: ssl.SSLWantWriteError
Rel: ssl.AlertDescription, ssl.cert_time_to_seconds, ssl.CertificateError, ssl.create_connection
Ref: docs.python.org โ€” ssl.SSLWantReadError
Tags: #public #python3 #stdlib #ssl


Import

import ssl
from ssl import SSLWantReadError

Signature & Overview

ssl.SSLWantReadError(...)

Non-blocking SSL socket needs to read more data before the requested operation can be completed.

Methods & Attributes

Usage

import ssl

ctx = ssl.create_default_context()
obj = ctx.wrap_bio(ssl.MemoryBIO(), ssl.MemoryBIO(), server_hostname="example.com")
try:
    obj.do_handshake()
except ssl.SSLWantReadError:
    assert True

Gotchas

REPL Inspect

from ssl import SSLWantReadError
help(SSLWantReadError)

Linked from

Related notes