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

Ignore BrokenResourceError in BaseHTTPMiddleware #1318

Closed
wants to merge 3 commits into from

Commits on Oct 21, 2021

  1. Ignore BrokenResourceError in BaseHTTPMiddleware

    ASGI specifies that send is a no-op when the connection is closed.
    
    HTTPMiddleware uses anyio streams which will raise
    an exception when the connection is closed prematurely.
    
    So we need to ignore the exception in our send function.
    
    Fixes encode#1284
    brakhane committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    a07b299 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2021

  1. Configuration menu
    Copy the full SHA
    43e89bf View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2021

  1. Configuration menu
    Copy the full SHA
    6110ef7 View commit details
    Browse the repository at this point in the history