WCF basicHttpBinding streamed keep alive

316 Views Asked by At

I'm using a self-hosted WCF service with this basicHttpBinding:

<basicHttpBinding>
    <binding name="streamedHttp"
             transferMode="Streamed"
             messageEncoding="Mtom"
             maxReceivedMessageSize="67108864"
             maxBufferSize="67108864" />
</basicHttpBinding>

If the connection is not used in the first 10 minutes (default receiveTimeout) after application start, it (EDIT: the connection, not the host application) will be closed. To avoid this, I'm looking for a possibility to keep the connection alive. Just increasing the receiveTimeout does not seem to be a good approach... A reliableSession can't be established because of transferMode=Streamed.

Could I do anything else than calling an empty service method periodically?

0

There are 0 best solutions below