Skip to content

Commit e91906c

Browse files
committed
Disable http pipelining
Pipelining isn't supported by elasticsearch. Closes #830.
1 parent c170b53 commit e91906c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ protected virtual HttpWebRequest CreateWebRequest(Uri uri, string method, byte[]
184184
myReq.Accept = "application/json";
185185
myReq.ContentType = "application/json";
186186
myReq.MaximumResponseHeadersLength = -1;
187+
myReq.Pipelined = false;
187188
//myReq.AllowWriteStreamBuffering = false;
188189
if (this.ConnectionSettings.EnableCompressedResponses)
189190
{

0 commit comments

Comments
 (0)