J
J
John_Nash2020-08-31 23:35:39
C++ / C#
John_Nash, 2020-08-31 23:35:39

WCF refreshes the connection after 5 minutes. How to get around?

Given: WCF client on net.framework 4.5
Several connections are open through which calls are made. After 5 minutes (or a little more, since the current method call is expected to complete), the current connection becomes TIME_WAIT and a new one is created.

Is there a setting to get around this, or is it hardcoded into the WCF code?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
John_Nash, 2020-09-02
@John_Nash

The question is removed. There was an error in the software. After each call, the Close() method twitched.
Apparently, in this case, the built-in connection pool is used only for 5 minutes.

V
Vladimir Korotenko, 2020-09-01
@firedragon

Dig into the endpoint settings
https://www.lybecker.com/blog/2010/10/14/wcf-timeouts/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question