ServicePoint.BindIPEndPointDelegate冻结http请求

时间:2019-03-04 21:25:49

标签: c# networking interface bind

我的服务器上有2个IP地址。默认情况下,每个应用程序都使用第一个接口的ip。但是我想将我的C#程序绑定到另一个IP。我使用此线程Choose one of many Internet connections for an application中的代码。一切正常,但是片刻。默认情况下,我的简单http请求ip比绑定的快50ms以上。为什么这样?我怀疑是因为我使用了withUnsafe...,但我不明白为什么。

BindIPEndPointDelegate

0 个答案:

没有答案