Free cookie consent management tool by TermsFeed Policy Generator

Changeset 264 for trunk/sources


Ignore:
Timestamp:
05/16/08 11:30:08 (17 years ago)
Author:
gkronber
Message:

fixed #152, increased maximum allowed concurrent sessions to 20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Grid/ServerForm.cs

    r240 r264  
    6060      externalHost = new ServiceHost(server, new Uri(externalAddressTextBox.Text));
    6161      internalHost = new ServiceHost(jobStore, new Uri(internalAddressTextBox.Text));
     62      ServiceThrottlingBehavior throttlingBehavior = new ServiceThrottlingBehavior();
     63      throttlingBehavior.MaxConcurrentSessions = 20;
     64      internalHost.Description.Behaviors.Add(throttlingBehavior);
    6265      try {
    6366        NetTcpBinding binding = new NetTcpBinding();
     
    6669        binding.ReaderQuotas.MaxArrayLength = 100000000; // also 100M elements;
    6770        binding.Security.Mode = SecurityMode.None;
     71       
    6872
    6973        externalHost.AddServiceEndpoint(typeof(IGridServer), binding, externalAddressTextBox.Text);
Note: See TracChangeset for help on using the changeset viewer.