You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operations that return a stream like ReadAllAsync and ReadStreamAsync have a default maxCount of long.MaxValue which represents an infinite stream which should never time out.
Operations that return a stream like
ReadAllAsync
andReadStreamAsync
have a default maxCount of long.MaxValue which represents an infinite stream which should never time out.It is not currently possible to set an infinite operation timeout. Setting
TimeoutAfter = Timeout.InfiniteTimeSpan
returns DeadlineExceeded (since it's a negative value) and settingTimeoutAfter = TimeSpan.MaxValue
returnsThe added or subtracted value results in an un-representable DateTime.
. We need to handle these cases here: https://github.com/EventStore/EventStore-Client-Dotnet/blob/master/src/EventStore.Client.Streams/DeadLine.cs#L6The default operations timeout is 5 seconds: https://github.com/EventStore/EventStore-Client-Dotnet/blob/master/src/EventStore.Client/EventStoreClientOperationOptions.cs#L10 and thus by default the operation times out after 5 seconds with DeadlineExceeded. Should we set an infinite timeout by default if maxCount = long.MaxValue for these types of operations? Or is the user expected to set it manually by passing
configureOperationOptions
?The text was updated successfully, but these errors were encountered: