Просмотр исходного кода

2010-02-18 Atsushi Enomoto <[email protected]>

	* ChannelDispatcher.cs : revert previous change - it could result
	  in blocking some threads and block nunit completion.


svn path=/trunk/mcs/; revision=151960
Atsushi Eno 16 лет назад
Родитель
Сommit
dd3adaa509

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

@@ -1,3 +1,8 @@
+2010-02-18  Atsushi Enomoto  <[email protected]>
+
+	* ChannelDispatcher.cs : revert previous change - it could result
+	  in blocking some threads and block nunit completion.
+
 2010-02-04  Atsushi Enomoto  <[email protected]>
 
 	* ChannelDispatcher.cs : now I can enable service throttling to

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

@@ -466,8 +466,9 @@ namespace System.ServiceModel.Dispatcher
 				// http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/3faa4a5e-8602-4dbe-a181-73b3f581835e
 
 				while (loop) {
-					// FIXME: also consider MaxConcurrentCalls
-					while (loop && channels.Count < owner.ServiceThrottle.MaxConcurrentSessions) {
+					// FIXME: enable throttling and allow more than one connection to process at a time.
+					while (loop && channels.Count < 1) {
+//					while (loop && channels.Count < owner.ServiceThrottle.MaxConcurrentSessions) {
 						channel_acceptor ();
 						creator_handle.WaitOne (); // released by ChannelAccepted()
 					}