]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix(c): fix timeout calculation in select-based wait function
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 10 Oct 2025 13:17:54 +0000 (15:17 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 13 Oct 2025 01:25:16 +0000 (03:25 +0200)
commit46d2721192b0f401aaa5280e2834bc4bb8116204
tree8d876c6b5115533d55ce6bef35b08da220c7dfc1
parent64eb36ebe472562ab1a7ec73a61e1a6d02b21462
fix(c): fix timeout calculation in select-based wait function

Because of the error, the timeout set to 0, resulting in a busy loop
instead of waiting.

Might fix #645.
docs/news.rst
psycopg_c/psycopg_c/_psycopg/waiting.pyx
tests/test_waiting.py
tests/test_waiting_async.py