Skip to content

Commit 621f1cb

Browse files
committed
favor continuoing async steps on the same thread (need to happen sequentially anyway)
1 parent e238242 commit 621f1cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/Elasticsearch.Net/Connection/HttpConnection.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public void Iterate(HttpWebRequest request, byte[] data, IEnumerable<Task> async
340340
}
341341
else if (enumerator.MoveNext())
342342
{
343-
enumerator.Current.ContinueWith(recursiveBody);
343+
enumerator.Current.ContinueWith(recursiveBody, TaskContinuationOptions.ExecuteSynchronously);
344344
}
345345
else enumerator.Dispose();
346346
};

Diff for: src/Profiling/Profiling.Indexing/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ class Program
1010
{
1111
static IEnumerable<Tester> Testers()
1212
{
13+
yield return new ThriftTester();
1314
yield return new HttpTester();
1415
yield return new HttpClientTester();
15-
yield return new ThriftTester();
1616
}
1717

1818
static void Main(string[] args)

0 commit comments

Comments
 (0)