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

Multiple BeforeRequest events fired for the same session

2 Answers 55 Views
FiddlerCore
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 20 Aug 2015, 11:29 PM
I've got a custom UI wrapper around FiddlerCore for a highly customized web traffic monitoring tool.  When simply logging the id and url of each session, I've noticed that there are multiple requests.  If I haven't set bBufferResponse = true, then there are 16 events fired for each session.  If bBufferResponse = true (I'd prefer it not be), then there are either 6 or 1 events fired.  Any ideas what could cause that?

2 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 1
answered on 21 Aug 2015, 02:57 PM
I should also have mentioned I ignore CONNECT requests.
0
Eric Lawrence
Telerik team
answered on 21 Aug 2015, 04:04 PM
Hello, Kevin--

This typically occurs when the FiddlerCore host accidentally attaches the .BeforeRequest += Whatever handler multiple times, usually because they're starting and stopping a single FiddlerCore instance and the function that they wrote to call Start() also attaches the event handler (even if the prior event handler was already attached). 

I'm happy to have a look at your code; feel free to email me.

Regards,
Eric Lawrence
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
FiddlerCore
Asked by
Kevin
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 1
Eric Lawrence
Telerik team
Share this question
or