scylladb / python-driver

ScyllaDB Python Driver, originally DataStax Python Driver for Apache Cassandra
https://python-driver.docs.scylladb.com
Apache License 2.0
70 stars 42 forks source link

Add setting `connected_event` flag in libevreactor #292

Closed sylwiaszunejko closed 7 months ago

sylwiaszunejko commented 7 months ago

Before, the connected_event flag was set in every implementation of Connection but this utilizing libev. That was causing the driver to sometimes hang for >3 minutes when shutting down.

This PR adds setting the connected_event flag in close() in LibevConnection.

Fixes: https://github.com/scylladb/python-driver/issues/172

sylwiaszunejko commented 7 months ago

I updated the commit message