开发者

Fluorine Client only working when Charles Web proxy is open

开发者 https://www.devze.com 2022-12-09 17:00 出处:网络
I created a console application that it should run every hour in order to push updates to a different server using Fluori开发者_Python百科neFx for C# client (NetConnection). It works great, but only w

I created a console application that it should run every hour in order to push updates to a different server using Fluori开发者_Python百科neFx 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消