Fixes send timeouts

This commit is contained in:
Cyberboss
2017-09-22 11:43:44 -04:00
parent d8dd82092a
commit 39cc432a5d
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -208,9 +208,10 @@ namespace TGServerService
void AddEndpoint(Type typetype)
{
var bindingName = Server.MasterInterfaceName + "/" + typetype.Name;
host.AddServiceEndpoint(typetype, new NetNamedPipeBinding() { MaxReceivedMessageSize = Server.TransferLimitLocal }, bindingName);
host.AddServiceEndpoint(typetype, new NetNamedPipeBinding() { SendTimeout = new TimeSpan(0, 0, 30), MaxReceivedMessageSize = Server.TransferLimitLocal }, bindingName);
var httpsBinding = new WSHttpBinding()
{
SendTimeout = new TimeSpan(0, 0, 40),
MaxReceivedMessageSize = Server.TransferLimitRemote
};
var requireAuth = typetype.Name != typeof(ITGConnectivity).Name;
+2 -2
View File
@@ -118,7 +118,7 @@ namespace TGServiceInterface
if (HTTPSURL == null)
{
outChannel = new ChannelFactory<T>(
new NetNamedPipeBinding { SendTimeout = new TimeSpan(0, 10, 0), MaxReceivedMessageSize = TransferLimitLocal }, new EndpointAddress(String.Format("net.pipe://localhost/{0}/{1}", MasterInterfaceName, InterfaceName))); //10 megs
new NetNamedPipeBinding { SendTimeout = new TimeSpan(0, 0, 30), MaxReceivedMessageSize = TransferLimitLocal }, new EndpointAddress(String.Format("net.pipe://localhost/{0}/{1}", MasterInterfaceName, InterfaceName))); //10 megs
outChannel.Credentials.Windows.AllowedImpersonationLevel = TokenImpersonationLevel.Impersonation;
return outChannel.CreateChannel();
}
@@ -126,7 +126,7 @@ namespace TGServiceInterface
//okay we're going over
var binding = new WSHttpBinding()
{
SendTimeout = new TimeSpan(0, 10, 0),
SendTimeout = new TimeSpan(0, 0, 40),
MaxReceivedMessageSize = TransferLimitRemote
};
var requireAuth = InterfaceName != typeof(ITGConnectivity).Name;