Developer forum

Forum » Integration » Change timeout of the connector

Change timeout of the connector

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

Is there a way to change the timeout of the integration framework? In ErpServiceCaller I see this:

WSHttpBinding binding = new WSHttpBinding {
    SendTimeout = TimeSpan.FromMinutes(30.0),
    OpenTimeout = TimeSpan.FromMinutes(30.0),
    CloseTimeout = TimeSpan.FromMinutes(30.0),
    ReceiveTimeout = TimeSpan.FromMinutes(30.0),

    MaxBufferPoolSize = 0x80000L,
    MaxReceivedMessageSize = 0x7fffffffL,
    AllowCookies = false,
    BypassProxyOnLocal = false,
    HostNameComparisonMode = HostNameComparisonMode.StrongWildcard,
    MessageEncoding = WSMessageEncoding.Text,
    TextEncoding = Encoding.UTF8,
    UseDefaultWebProxy = true,
    Name = "DynamicwebErpService.DynamicwebService"
};

Any way to override those defaults?

Imar


Replies

 
Nicolai Høeg Pedersen
Reply

Since they are totally hardcoded, you cannot...

But we could add a setting! I'll send it on.

BR Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

That would be really useful. We currently have a NAV environment that is extremely slow (often 20 to 30+ seconds for a response). WIth the current timeout, all we can do is wait which kills performance. If I could set the timeout per call I could set it to, say, 3 seconds for pricing information and accept the fact I may not have NAV prices when NAV doesn't respond in time. For an OrderCreate method I could set a longer timeout as the user is more inclined to wait for that.

Hope this makes sense.

See you tomorrow!

Imar

 
Nicolai Høeg Pedersen
Reply

Makes lots of sense. Bail out instead of adding €100 worth of ram :-).

See you tomorrow!

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Don't get me started. I certainly agree that the NAV side should be a lot faster. But this is not an easy project. I can tell you all about it over a beer ;-)

 
Nicolai Høeg Pedersen
Reply

LOL, thats a deal!

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

>> But we could add a setting!

Or maybe just add an overload that allows you to set it. We're calling that method from code in the live integration so we could easily change it. Any chance tha could be added to the 8.8.1 branch?

Thanks,

Imar

 
Kristian Kirkholt
Reply

Hi Imar

The problem TFS#23258 "Change timeout of the connector"  has now been fixed in version 8.8.1.3

You are able to find this build in the download section.

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

 

You must be logged in to post in the forum