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

Shield send "http.response.start" from cancellation #1706

Closed
wants to merge 5 commits into from

Commits on Jun 25, 2022

  1. Shield send http.response.start from cancellation

    `RuntimeError: No response returned.` is raised in BaseHTTPMiddleware
    if request is disconnected, due to `task_group.cancel_scope.cancel()`
    in StreamingResponse.__call__.<locals>.wrap and cancellation check in
    `await checkpoint()` of MemoryObjectSendStream.send.
    
    Let's fix this behaviour change caused by anyio integration in 0.15.0.
    acjh committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    9d745e3 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2022

  1. Configuration menu
    Copy the full SHA
    260df6a View commit details
    Browse the repository at this point in the history
  2. Fix E501 line too long

    acjh committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    d53845c View commit details
    Browse the repository at this point in the history
  3. Fix arg-type

    acjh committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    11c011d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f5ed5e0 View commit details
    Browse the repository at this point in the history