This is a migrated thread and some comments may be shown as answers.

fiddlercore block

3 Answers 197 Views
FiddlerCore
This is a migrated thread and some comments may be shown as answers.
sawachika
Top achievements
Rank 1
sawachika asked on 12 Feb 2015, 10:06 AM
When there are plenty of requests to the fiddlercore, and i change fullurl to a slow https address, the follow-up requests will block,and BeforeRequest not call.
other HttpClient.SendAsync throw TaskCancelException too.

 I use ilasm open fiddlercore4.dll , find a Socket.Listen(50) in Proxy.Start method, Is the cause of the problem? I export to fiddlercore4.il and change 50 to 99999, but still problem, please help me , thank you .

3 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 12 Feb 2015, 04:26 PM
First off, please don't try to modify FiddlerCore's code; not only does that violate the license agreement, it's not going to help you either. In particular, the code you're pointing at has nothing to do with the problem you're having.

If you share the code you're using, I can probably help you understand what is going on.

Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
sawachika
Top achievements
Rank 1
answered on 13 Feb 2015, 04:08 AM
I'm sorry!
There are my code :
FiddlerApplication.BeforeRequest += FiddlerApplication_BeforeRequest;
private static void FiddlerApplication_BeforeRequest(Session oSession)
        {
if (oSession.HTTPMethodIs("CONNECT"))
                {
                    oSession.oFlags["X-ReplyWithTunnel"] = "https://www.xxxx.cn";
                }
else
{
oSession.fullurl="https://xxxx.com";// the new https address is slow response, it's needs a little time, When there are plenty of requests to the fiddlercore, the follow-up requests will block,and BeforeRequest not call.
}



and how to set session request timeout?
    }
0
Eric Lawrence
Telerik team
answered on 13 Feb 2015, 04:20 PM
Just so we're clear here, you want Fiddler to intercept ALL HTTPS connection requests and pretend like they succeeded? And then you want to redirect every other request to a fixed URL? This is a pretty odd configuration, I'm not sure why you'd want to do that.

It's not clear what you mean when you say "plenty of requests"-- you should be able to make at least several dozen requests in parallel (on a very low-end machine) and hundreds of requests in parallel on a faster machine.

Timeouts are controlled by preferences and they default to more than one minute.

Which version of FiddlerCore are you using? What flags did you pass to your Startup method? Did you adjust the threadpool growth algorithm as demo'd in the Program.cs file, or are you using a modern version of FiddlerCore with the FiddlerCoreStartupFlags.OptimizeThreadPool flag set?


Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
FiddlerCore
Asked by
sawachika
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
sawachika
Top achievements
Rank 1
Share this question
or