0
WCFサービスを呼び出すシンクライアントがあります。大きなバイナリ転送が必要になるまで、WCFはうまく動作します。呼び出しがスタックアップしてからタイムアウトしたように見えます。 appPoolがリサイクルされるまで、アプリは死んでいます。ここで大きなバイナリコールでWCF要求のタイムアウトが発生する
が設定は次のとおりです。
SERVER:
<wsHttpBinding>
<binding
name="wsHttpEndpointBinding"
maxBufferPoolSize="5242880"
maxReceivedMessageSize="5242880">
<readerQuotas
maxDepth="32"
maxStringContentLength="5242880"
maxArrayLength="1073741824"
maxBytesPerRead="2147483646"
maxNameTableCharCount="16384" />
<security mode="Message">
<message clientCredentialType="Certificate" />
</security>
</binding>
</wsHttpBinding>
CLIENT:
<wsHttpBinding>
<binding
name="WebServices"
closeTimeout="00:01:00"
openTimeout="00:01:00"
receiveTimeout="00:10:00"
sendTimeout="00:01:00"
bypassProxyOnLocal="false"
transactionFlow="false"
hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="5242880" maxReceivedMessageSize="52428800" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="123487960" maxArrayLength="12621440" maxBytesPerRead="2147483646" maxNameTableCharCount="16384"/>
<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None" realm="">
</transport>
<message clientCredentialType="Certificate" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true"/>
</security>
</binding>
</wsHttpBinding>
明白な問題は、データベースからバイナリコンテンツを検索する際に行き詰まりは、に表示されません。事件である。強い外観は、何かが積み重なっていて解放されていないということです。
TIA。
私はタイムアウトを高く設定することを検討しましたが、問題を隠すだけのようです。この呼び出しは2番目に短い時間で完了するはずです...私はそれがデータの転送と関係があると思います。 –
@Chris B. Behrens - TransferMode.BufferedまたはTransferMode.Streamingを使用していますか?それがバッファリングされている場合、それはおそらく問題かもしれませんか? – Tim
私はこのバインディングのデフォルトはBufferedだと思うので、問題の一部になる可能性があります。ストリーミングの値でバインディングに属性を追加しようとしましたが、うまくいかなかった...このバインディングタイプのwsHttpBindingがそのパラメータを受け入れるようには見えません。 –