Open haizaar opened 8 years ago
Thank you for reporting with a way to reproduce! I am traveling right now, will get back to the issue on the next week.
Do you have any ETA on this bug, please?
Ping :)
No ETA, sorry - I'm not sure I'll be able to look into it any time soon.
I'm writing server failure detection code in momoko and hitting the following issue with psycopg2cffi. It works with the regular psycopg2.
The scenario:
service postgres restart
won't do).conn.closed
should be > 0, white it's equal 0psycopg2cffi 2.7.2, Python 2.7, cffi 1.2.1, Postgres 9.3 (same behaviour with 9.2 and 9.4).
Reproduction:
And let's run it:
Note the
aconn.closed = 0
.The similar code but in synchronous mode works fine:
And running it:
conn.closed
is greater than 0 as expected.