Skip to content

Poco::Data::SessionPool::dead() must check idle, not active, sessions #4923

Open
@obiltschnig

Description

@obiltschnig

Poco::Data::SessionPool::dead() iterates over _activeSessions list and calls isGood() on sessions. This is both incorrect and bad, as sessions in this list are in use by other threads, leading to potential data races. It should iterate over _idleSessions.

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions