Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/25/09 14:48:56 (15 years ago)
Author:
gkronber
Message:

Introduced paging for queries to fix problems with large WCF messages. #257 (CEDMA console doesn't handle communication- and timeout exceptions correctly)

Location:
trunk/sources/HeuristicLab.CEDMA.Server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Server/DispatcherBase.cs

    r1287 r1417  
    6868      };
    6969
    70       Entity[] datasets = store.Query("?DataSet <" + Ontology.PredicateInstanceOf.Uri + "> <" + Ontology.TypeDataSet.Uri + "> .")
     70      Entity[] datasets = store.Query("?DataSet <" + Ontology.PredicateInstanceOf.Uri + "> <" + Ontology.TypeDataSet.Uri + "> .", 0, 100)
    7171        .Select(x => (Entity)x.Get("DataSet"))
    7272        .ToArray();
  • trunk/sources/HeuristicLab.CEDMA.Server/Server.cs

    r1287 r1417  
    7171      try {
    7272        NetTcpBinding binding = new NetTcpBinding();
    73         binding.SendTimeout = new TimeSpan(1, 0, 0);
    74         binding.MaxReceivedMessageSize = 1000000000; // 100Mbytes
    75         binding.ReaderQuotas.MaxStringContentLength = 1000000000; // also 100M chars
    76         binding.ReaderQuotas.MaxArrayLength = 1000000000; // also 100M elements;
     73        binding.SendTimeout = new TimeSpan(10, 0, 0);
     74        binding.MaxReceivedMessageSize = int.MaxValue;
     75        binding.ReaderQuotas.MaxStringContentLength = int.MaxValue;
     76        binding.ReaderQuotas.MaxArrayLength = int.MaxValue;
    7777        host.AddServiceEndpoint(typeof(IStore), binding, cedmaServiceUrl);
    7878        host.Open();
Note: See TracChangeset for help on using the changeset viewer.