Skip to content

Session pool creation can publish stale pools to replacement hosts #860

@dkropachev

Description

@dkropachev

Problem

Session.add_or_renew_pool() creates pools asynchronously. Between pool creation start and publication into Session._pools, metadata refresh may replace the Host object for that host id or move it to a different endpoint. The async task can then publish a pool that was created for stale host state into the live session map.

Impact

A stale pool can overwrite the valid current pool and send later requests through connections that were opened for the wrong host identity or endpoint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions