Skip to content

Filedescriptor out of range error in v3.1.8 #532

@Kim-Hammar

Description

@Kim-Hammar

I encounter the following error when running psycopg 3.1.8 on python 3.9 on a server with a large number of open file descriptors. This is the stack trace:

File "python3.9/site-packages/psycopg/cursor.py", line 719, in execute
    self._conn.wait(
  File python3.9/site-packages/psycopg/connection.py", line 957, in wait
    return waiting.wait(gen, self.pgconn.socket, timeout=timeout)
  File "python3.9/site-packages/psycopg/waiting.py", line 219, in wait_select
    rl, wl, xl = select.select(
ValueError: filedescriptor out of range in select()

ulimit have been set to allow for the large number of FDs so this is not the issue. Downgrading to psycopg v3.1.4 fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions