Thanks for your replies.
It's not forever, I didn't express myself correctly. After some time I get the following exception:
The maximum retry count has been exceeded with no response from the remote endpoint. The reliable session was faulted. This is often an indication that the remote endpoint is no longer available.
It's a singleton. This is part of the app.config:
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_QueryingService" closeTimeout="00:25:00"
openTimeout="00:25:00" receiveTimeout="00:25:00" sendTimeout="00:25:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647" />
<reliableSession ordered="true" inactivityTimeout="00:25:00"
enabled="true" />
<security>
<transport>
<extendedProtectionPolicy policyEnforcement="Never" />
</transport>
</security>
</binding>
...
On the provider side:
<wsHttpBinding>
<binding name="wsHttpConfig" maxReceivedMessageSize="2147483647" receiveTimeout="00:25:00">
<readerQuotas maxDepth="2147483647"
maxStringContentLength="2147483647"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647" />
<reliableSession enabled="true" ordered="true" />
</binding>
</wsHttpBinding>
...
<service name="Platform.WSLA.Impl.Services.Querying.QueryingService"
behaviorConfiguration="Default.Behavior">
<endpoint address="http://localhost:8004/Platform/wsla/querying/QueryingService"
binding="wsHttpBinding"
bindingConfiguration="wsHttpConfig"
contract="Platform.WSLA.Contracts.Services.Querying.IQueryingService" />
<endpoint address="mex"
binding="mexHttpBinding"
name="MetadataExchange"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8004/Platform/wsla/querying" />
</baseAddresses>
</host>
</service>