Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset socketTimeout to original value after a successful connection open #2355

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

tkyc
Copy link
Member

@tkyc tkyc commented Mar 19, 2024

@tkyc tkyc added this to the 12.7.0 milestone Mar 19, 2024
@tkyc tkyc linked an issue Mar 19, 2024 that may be closed by this pull request
@Jeffery-Wasty Jeffery-Wasty added this to In progress in MSSQL JDBC via automation Mar 19, 2024
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

Attention: Patch coverage is 49.74359% with 98 lines in your changes are missing coverage. Please review.

Project coverage is 50.08%. Comparing base (00a2556) to head (731678a).
Report is 5 commits behind head on main.

❗ Current head 731678a differs from pull request most recent head 92f22cd. Consider uploading reports for the commit 92f22cd to get more accurate results

Files Patch % Lines
...microsoft/sqlserver/jdbc/SQLServerMSAL4JUtils.java 0.00% 41 Missing ⚠️
...a/com/microsoft/sqlserver/jdbc/SQLServerError.java 32.14% 17 Missing and 2 partials ⚠️
...microsoft/sqlserver/jdbc/SQLServerInfoMessage.java 44.44% 14 Missing and 1 partial ⚠️
...m/microsoft/sqlserver/jdbc/SQLServerException.java 64.28% 5 Missing ⚠️
...lserver/jdbc/PersistentTokenCacheAccessAspect.java 20.00% 3 Missing and 1 partial ⚠️
.../microsoft/sqlserver/jdbc/SQLServerConnection.java 73.33% 3 Missing and 1 partial ⚠️
...m/microsoft/sqlserver/jdbc/SQLServerStatement.java 71.42% 2 Missing and 2 partials ⚠️
...rc/main/java/com/microsoft/sqlserver/jdbc/dtv.java 77.77% 1 Missing and 1 partial ⚠️
...t/sqlserver/jdbc/SQLServerConnectionPoolProxy.java 50.00% 1 Missing ⚠️
...com/microsoft/sqlserver/jdbc/SQLServerWarning.java 83.33% 1 Missing ⚠️
... and 2 more
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2355      +/-   ##
============================================
+ Coverage     50.00%   50.08%   +0.07%     
- Complexity     3787     3812      +25     
============================================
  Files           143      145       +2     
  Lines         33186    33309     +123     
  Branches       5631     5641      +10     
============================================
+ Hits          16596    16683      +87     
- Misses        14202    14240      +38     
+ Partials       2388     2386       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

barryw-mssql
barryw-mssql previously approved these changes Mar 20, 2024
Jeffery-Wasty
Jeffery-Wasty previously approved these changes Mar 21, 2024
@tkyc tkyc dismissed stale reviews from Jeffery-Wasty and barryw-mssql via 92f22cd March 25, 2024 16:52
@lilgreenbird lilgreenbird merged commit 7e0dcb3 into main Mar 26, 2024
17 checks passed
MSSQL JDBC automation moved this from In progress to Closed/Merged PRs Mar 26, 2024
@lilgreenbird lilgreenbird changed the title socketTimeout should reset to original value after a successful connection open Reset socketTimeout to original value after a successful connection open Apr 3, 2024
@Jeffery-Wasty Jeffery-Wasty deleted the bounded-sockettimeout-reset branch April 3, 2024 01:10
tkyc added a commit that referenced this pull request May 23, 2024
tkyc added a commit that referenced this pull request May 23, 2024
…successful connection open (2355) (#2431)

* socketTimeout should reset to original value after a successful connection open (#2355)

* SocketTimeout should be unbounded by loginTimeout after a successful connection open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
MSSQL JDBC
  
Closed/Merged PRs
Development

Successfully merging this pull request may close these issues.

loginTimouts overwrites socketTimeout for SELECTs
4 participants