fiddlercore block

4 posts, 0 answers
  1. sawachika
    sawachika avatar
    18 posts
    Member since:
    Feb 2015

    Posted 12 Feb 2015 Link to this post

    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 .
  2. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 12 Feb 2015 Link to this post

    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.

     
  3. sawachika
    sawachika avatar
    18 posts
    Member since:
    Feb 2015

    Posted 12 Feb 2015 in reply to Eric Lawrence Link to this post

    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?
        }
  4. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 13 Feb 2015 Link to this post

    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.

     
Back to Top