Fluorine 客户端仅在 Charles Web 代理打开时工作

发布于 2024-08-10 00:57:56 字数 165 浏览 3 评论 0原文

我创建了一个控制台应用程序,它应该每小时运行一次,以便使用 FluorineFx for C# 客户端 (NetConnection) 将更新推送到不同的服务器。它效果很好,但只有当我打开 Charles 时,我才能看到正在发送的内容。另一方面,如果 Charles 关闭,则它不会发送数据。

谢谢。

I created a console application that it should run every hour in order to push updates to a different server using FluorineFx for C# client (NetConnection). It works great, but only when I have Charles open and so I can see what is being sent. On the other hand, if Charles is closed, it does not send the data.

Thx.

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

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

发布评论

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

评论(1

裂开嘴轻声笑有多痛 2024-08-17 00:57:57

我参加聚会有点晚了,但我最近遇到了同样的问题并找到了解决方案。问题是 Fluorine 不会对 HttpWebResponse 对象调用 Close() 方法,因此 .NET 使该对象无限期地保持活动状态,这会导致后续请求最终在默认的每主机连接数限制上被阻止。

我在 RemotingClient.cs 中发现了两个这样的情况,在完成响应后调用 HttpWebResponse.Close() 为我解决了问题。

I am a bit late to the party, but I recently encountered the same problem and found a solution. The issue is that Fluorine does not call the Close() method on the HttpWebResponse objects and as a result .NET keeps the object alive indefinitely, which causes subsequent requests to eventually block on the default connections-per-host limit.

I found two such cases in RemotingClient.cs, calling HttpWebResponse.Close() after you are done with the response fixed the problem for me.

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