Skip to content

call_timeout resets back to 0 #558

Closed

Description

@phaviland
  1. What versions are you using?
    19.24.0.0.0
    platform.platform: Windows-11-10.0.26100-SP0
    sys.maxsize > 2**32: True
    platform.python_version: 3.13.1
    oracledb.version: 3.1.0

  2. Is it an error or a hang or a crash?
    No error

  3. What error(s) or behavior you are seeing?
    call_timeout is resetting back to 0 when idle time exceeds ping_interval. I am setting the call_timeout in the session_callback.

  4. Does your application call init_oracle_client()?
    No

  5. Include a runnable Python script that shows the problem.

import oracledb

async def set_connection_attributes(conn, tag):
    conn.call_timeout = 1000

pool = oracledb.create_pool_async(
        user = x,
        password = x,
        dsn = x,
        min = 5,
        max = 10,
        session_callback=set_connection_attributes,
        expire_time=10,
        ping_interval=0
    )

  async with pool.acquire() as conn:
      print(f"call timeout: {conn.call_timeout}") 

Activity

  1. added
    bug
    on Dec 12, 2025
  2. anthony-tuininga commented on Jan 23, 2026

    @anthony-tuininga
    Member

    I have pushed a patch that should correct this issue and have initated a build from which you can download pre-built development wheels once it completes. You can also build from source if you prefer. If you can test your scenario and confirm the patch works as expected, that would be appreciated!

  3. anthony-tuininga commented on Jan 23, 2026

    @anthony-tuininga
    Member

    I have initiated a new build on the v3.4.x branch in preparation for the release of python-oracledb 3.4.2.

  4. anthony-tuininga commented on Jan 28, 2026

    @anthony-tuininga
    Member

    This was included in python-oracledb 3.4.2 which was just released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpatch available

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions