Browse Source

[System] Set KeepAlive flag for HttpWebRequest

Pozdeev 9 years ago
parent
commit
b7754c85fd

+ 1 - 0
mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs

@@ -126,6 +126,7 @@ namespace System.ServiceModel.Channels
 			}
 
 			web_request.Timeout = (int) timeout.TotalMilliseconds;
+			web_request.KeepAlive = httpbe.KeepAliveEnabled;
 
 			// There is no SOAP Action/To header when AddressingVersion is None.
 			if (message.Version.Envelope.Equals (EnvelopeVersion.Soap11) ||