C# HttpWebRequest SEC_I_RENEGOTIATE Intermittent Errors

前端 未结 3 1737
时光取名叫无心
时光取名叫无心 2020-12-05 01:01

I\'m working on login / logout functionality using SSL POST calls in a C# (.Net framework 3.5) application. Getting the response from the server via HttpWebRequest::BeginGe

3条回答
  •  我在风中等你
    2020-12-05 01:30

    This is not an explanation, nor a true solution: it's simply the most pragmatic way of dealing with this issue that we've found in our case (doing a WCF SOAP request over HTTPS using a client SSL cert with an Apache & Java based server).

    Catch SecurityNegotiationException and retry on-the-spot (i.e. rather than reprocessing the message, if using msmq), and suppress reporting the exception in this case. Just inc a performance counter or something simple like that so you can track whether the problem gets any worse.

    At the end of the day, this is just one of those innate network-related problems that your code needs to deal with.

提交回复
热议问题