Internet 连接启动时 .NET 远程处理速度变慢

发布于 2024-09-07 00:20:18 字数 257 浏览 1 评论 0原文

我一直在我的开发机器上使用 .net 远程处理客户端和服务器,一切都很好。然后我在另一台机器上找到了服务器,通过 100 Mbit LAN 与我连接。它有 VPN 连接,可以连接到互联网。

每当 VPN 连接启动时,.NET 远程处理都会为每个查询提供巨大的延迟(0.03 秒查询为 1 秒,1.3 秒查询为 9 秒)。但我的机器和启用VPN的服务器之间的速度仍然是100 Mbit/s。

我正在使用二进制 tcp 通道。

有谁知道这个问题的解决方案?

I have been using .net remoting with client and server on my dev machine, and everything was fine. And then I've located the server on the other machine, connected with my through a 100-Mbit LAN. It has a VPN connection, allowing it to connect to the internet.

Whenever a VPN connection is started, .NET remoting gives out huge lag for every query(1s for 0.03s query and 9s for 1.3s query). But the speed between my machine and the server one with VPN enabled is still 100 Mbit/s.

I'm using binary tcp channel.

Does anyone know of solution to this problem ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

兮颜 2024-09-14 00:20:18

使用服务器通道配置的 bindTo 配置属性解决了问题。
看起来,当有不止一个 1 网络接口时,remoting 不知道使用哪一个并分析所有数据。
设置bindTo ip地址后,延迟消失了。

Problem solved using the bindTo configuration property for the server channel configuration.
It seems that when there are more than one 1 network interface, remoting doesn't know which one to use and analyzes all data.
After setting bindTo ip address lag was gone.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文