Visitar URL original
http client putrequest changes active continue timeout after rejected call · Issue #161861 · python/cpython · GitHub
Skip to content

http client putrequest changes active continue timeout after rejected call #161861

Open

Description

@tonghuaroot

a putrequest call stores the continue timeout before checking the connection state. a second putrequest call can raise cannot send request and still replace the timeout of the request already being built.

moving the assignment after the successful state check preserves the active request timeout.

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    stdlibStandard Library Python modules in the Lib/ directory
    on Nov 12, 2026
  2. added a commit that references this issue on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions