[CSHARP-1201] Remove OperationTimeout from Settings Created: 20/Mar/15  Updated: 02/Apr/15  Resolved: 20/Mar/15

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0

Type: Task Priority: Major - P3
Reporter: Craig Wilson Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CSHARP-1193 OperationTimeout via ConnectionString Closed

 Description   

We've decided to remove the global/settings based OperationTimeout. It was simply using a cancellation token with a timeout baked in and didn't provide as much granular control as is probably needed for this type of setting. In addition, a client-side timeout like this doesn't alert the server of a cancelled request.

Hence, for timeouts, using maxTimeMS in the places where it's supported is the better alternative. When client-side timeouts are needed, writing a WithTimeout extension method is trivial.



 Comments   
Comment by Githook User [ 20/Mar/15 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1201: Removing OperationTimeout from settings classes.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/93074a9d2f2d2a9234c2a5c61c16e6d7a52cbf21

Generated at Wed Feb 07 21:38:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.