Repository navigation
request timeout not working #291
Description
Activity
sumitmsft commented
on Oct 15, 2025 ContributorMore actionsHello lstorme - thanks for reporting this issue. We will triage this issue and let you know our next plan of action on this. Please allow time to revert. If this is extremely critical for your project please do let us know, so that we take it up on priority.
Thanks again for reporting this issue.
- addedtriage neededFor new issues, not triaged yet.For new issues, not triaged yet.
on Oct 15, 2025 I see release 1.0 is released but timeout isn't working ?
jahnvi480 commented
on Nov 25, 2025 ContributorMore actionsThank you for reporting this issue! I've confirmed the bug and implemented a complete fix. The timeout feature was not working due to missing constants and incorrect type casting in the C++ bindings.
Verification
Tested with your exact scenario:conn = mssql_python.connect(conn_str, timeout=2) cursor = conn.cursor() cursor.execute("WAITFOR DELAY '00:00:05'") # 5 seconds
Result: ✅ Query now properly times out after ~2 seconds with
OperationalErrorThe fix has been implemented in PR #348 and will be available once merged.
- addedtriage doneIssues that are triaged by dev team and are in investigation.Issues that are triaged by dev team and are in investigation.and removedtriage neededFor new issues, not triaged yet.For new issues, not triaged yet.
on Nov 25, 2025 - added a commit that references this issue
on Dec 10, 2025 jahnvi480 commented
on Dec 11, 2025 ContributorMore actionslstorme PR is merged now and this will start working from next release.
- addedarea: connectivity-authConnection lifecycle, Entra/SP/NTLM auth, tokens, TLS, conn-string parsing, Fabric endpoints.Connection lifecycle, Entra/SP/NTLM auth, tokens, TLS, conn-string parsing, Fabric endpoints.
on Jun 4, 2026
Describe the bug
A clear and concise description of what the bug is.
If you are seeing an exception, include the full exceptions details (message and stack trace).
To reproduce
Include a complete code listing (or project/solution) that we can run to reproduce the issue.
Partial code listings, or multiple fragments of code, will slow down our response or cause us to push the issue back to you to provide code to reproduce the issue.
Use step from https://github.com/microsoft/mssql-python/wiki/Connection
Expected behavior
A clear and concise description of what you expected to happen.
-> should see Query timed out...
-> no exception raised
Further technical details
Python version: 3.12
SQL Server version: (e.g. SQL Server 2022)
Operating system: RedHat 8