Parcourir la source

2009-09-16 Atsushi Enomoto <[email protected]>

	* ChannelDispatcher.cs : make sure to close the request context,
	  some channels such as http keeps opening it. Patch by Levi Bard.
	  Fixed bug #533776.


svn path=/trunk/mcs/; revision=142008
Atsushi Eno il y a 16 ans
Parent
commit
f6f60a7e50

+ 6 - 0
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/ChangeLog

@@ -1,3 +1,9 @@
+2009-09-16  Atsushi Enomoto  <[email protected]>
+
+	* ChannelDispatcher.cs : make sure to close the request context,
+	  some channels such as http keeps opening it. Patch by Levi Bard.
+	  Fixed bug #533776.
+
 2009-09-14  Atsushi Enomoto  <[email protected]>
 
 	* ChannelDispatcher.cs : do not try to wait for channel closer

+ 2 - 0
mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/ChannelDispatcher.cs

@@ -532,6 +532,8 @@ namespace System.ServiceModel.Dispatcher
 					// FIXME: log it.
 					Console.WriteLine (ex);
 				} finally {
+					if (rc != null)
+						rc.Close ();
 					// unless it is closed by session/call manager, move it back to the loop to receive the next message.
 					if (reply.State != CommunicationState.Closed)
 						ProcessRequestOrInput (reply);