tarantool / tarantool-python

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

socket.error after tarantool restart #57

Closed bekbulatov closed 8 years ago

bekbulatov commented 9 years ago

I'm using tarantool 1.5 with stable branch (0.3.6 version) of python driver. After tarantool restart I got Connection reset by peer error in line https://github.com/tarantool/tarantool-python/blob/stable/src/tarantool/connection.py#L150 and Broken pipe in line https://github.com/tarantool/tarantool-python/blob/stable/src/tarantool/connection.py#L172 Reconnect with connection.connect() helps, but it's better to fix in driver. Tried to do it by myself but I'm confused with libc magic and self._recv https://github.com/tarantool/tarantool-python/blob/stable/src/tarantool/connection.py#L189 which always is None

bekbulatov commented 9 years ago

if self._recv == None was added in 0.3.6 0.3.5 seems to work fine

bigbes commented 8 years ago

If it's related to Windows, then it must be fixed in the latest master. sorry for long response.