自託管宿主使用 NetTcpBinding 時出現:「The socket connection was aborted... Local socket timeout '00:00:59.7656250'」。MSDN 討論建議:
WSHttpBinding 並調大 ReceiveTimeout:var binding = new WSHttpBinding { ReceiveTimeout = new TimeSpan(10,10,10) };BasicHttpBinding 避免雙工/工作階段機制導致的閒置斷線。根因通常為網路閒置超過預設接收逾時、防火牆斷開長連線、或雙工通道回調失敗。依實際拓撲選擇繫結並調整逾時參數。