tarantool / tarantool-python

Python client library for Tarantool
https://www.tarantool.io
BSD 2-Clause "Simplified" License
100 stars 48 forks source link

Replace inconnect flag with something more appropriate #108

Closed bigbes closed 5 years ago

bigbes commented 6 years ago

For example, create a lock object for controlling recursion and add wrap locking/unlocking into decorator around connect/opt_reconnect

Totktonada commented 5 years ago

It is unclear what kind of problem it tries to solve. The code suggests that it is about synchronization, but readme clearly states that a connection can not be shared between different threads. If it is something Windows-related, we need to create a test case.

It looks now that, if we'll just remove this flag, things will work well.