[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' Change-Id: I5f908fea4498d347d858e4e6a472806b40cf3e10 |