[GODRIVER-741] Option "serverSelectionTimeoutMS" is ignored if set in connection URI Created: 02/Jan/19  Updated: 28/Oct/23  Resolved: 07/Jan/19

Status: Closed
Project: Go Driver
Component/s: Options & Configuration
Affects Version/s: None
Fix Version/s: 0.2.0

Type: Bug Priority: Major - P3
Reporter: Adam Wasila Assignee: Go Community User
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

If serverSelectionTimeoutMS is set in URI it is  not set but default 30s timeout is always used.

It seems to be quite trivial omission here, in case "serverselectiontimeoutms" block:

https://github.com/mongodb/mongo-go-driver/blob/master/x/network/connstring/connstring.go#L570

It seems that bug is caused by property "ServerSelectionTimeoutSet" being not set at the end of case block.
 



 Comments   
Comment by Githook User [ 07/Jan/19 ]

Author:

{'username': 'skriptble', 'email': 'kris@mongodb.com', 'name': 'Kris Brandow'}

Message: Merge branch 'pr/127'

GODRIVER-741

Change-Id: I5f908fea4498d347d858e4e6a472806b40cf3e10
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/27f5d62632c14095861c3b27780d113a57ec3e69

Generated at Thu Feb 08 08:34:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.