Difference between OperationTimeout and SendTimeout in WCF

前端 未结 1 1736
别那么骄傲
别那么骄傲 2020-12-05 05:18

After quite a bit of searching, I could not find the answer to this question.

What is exact difference between OperationTimeout and SendTimeout? I read Operat

相关标签:
1条回答
  • 2020-12-05 05:59

    I'd like to propose reading this answer from Brian McNamara over on the MSFT forums:

    Brief summary of binding timeout knobs...

    Client side:

    • SendTimeout is used to initialize the OperationTimeout, which governs the whole interaction for sending a message (including receiving a reply message in a request-reply case). This timeout also applies when sending reply messages from a CallbackContract method.
    • OpenTimeout and CloseTimeout are used when opening and closing channels (when no explicit timeout value is passed).
    • ReceiveTimeout is not used.

    Server side:

    • Send, Open, and Close Timeout same as on client (for Callbacks).
    • ReceiveTimeout is used by ServiceFramework layer to initialize the session-idle timeout.
    0 讨论(0)
提交回复
热议问题