Skip to content

1.8.5 - 2025-08-14

Choose a tag to compare

@joerivanruth joerivanruth released this 14 Aug 15:27
· 41 commits to master since this release

New features since 1.8.4

  • The 'connect_timeout' parameter now applies to the whole process of finding a server and logging in, instead of just setting the socket timeout during socket.connect().

    This is useful because sometimes socket.connect() may succeed even though the server is in fact hanging.

  • All logging messages are now at DEBUG level. There used to be one INFO message "Established connection to..." but it was emitted too early, before login. Logging everything as DEBUG seems more consistent.

Bug fixes

  • The decision whether a result set needs to be closed or not was accidentally based on the size of the previous result set, not the current. This could cause unclosed result sets to pile up until the connection was closed.

  • When scanning Unix Domain sockets, errors are to be expected. Until now, all exceptions were intercepted and if no connection could be made, the last one was rethrown. This caused important errors such as 'invalid credentials' to be masked by later less interesting errors. This has been fixed by only postponing OSErrors and 'no such database'.