Description
If you execute multiple queries with UseStreaming(true), subsequent queries fail. This is because you cannot set HttpClient.Timeout after executing the first request.
Exception:
System.InvalidOperationException
This instance has already started one or more requests. Properties can only be modified before sending the first request.
at System.Net.Http.HttpClient.CheckDisposedOrStarted()
at System.Net.Http.HttpClient.set_Timeout(TimeSpan value)
at Couchbase.N1QL.StreamingQueryClient.<ExecuteQueryAsync>d__3`1.MoveNext() in C:\Users\bburnett\Source\Repos\couchbase-net-client\Src\Couchbase\N1QL\StreamingQueryClient.cs:line 43
Attachments
For Gerrit Dashboard: NCBC-1259 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
71395,4 | NCBC-1258: Read properties before enumerating streaming query results | master | couchbase-net-client | Status: MERGED | +2 | +1 |
71421,14 | NCBC-1259: StreamingQueryClient fails on multiple queries | master | couchbase-net-client | Status: MERGED | +2 | +1 |