Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLSUpgradeProto: don't set multiple results for an event #1117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 1, 2024

  1. TLSUpgradeProto: don't set multiple results for an event

    In the case of a misbehaving server, the client may receive more than
    one byte in separate data_received() invocations from the server. While
    we can't do much sane with this, we should handle it gracefully and not
    crash with asyncio.InvalidStateError when trying to set another result
    on the event.
    
    Fixes MagicStack#729
    w-miller committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    50bb192 View commit details
    Browse the repository at this point in the history