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

Debug Sessions/Connects (keepalive)

2 Answers 716 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Bernd
Top achievements
Rank 1
Bernd asked on 07 Apr 2015, 06:43 PM

When I use Fiddler2 as a autoresponder (simple web server) I would like to see which requests are done in which http connection (i.e. Keepalive). I can add the column "ClientPipeStatus" which will give me "new" or "reused" and I can also see new sessions/reused sesions in the timeline view marked with a dot.

But I have'nt found an attribute which would stay consistent inbetween requests (like the "connection number" or "connection start time") or which would be a "this is request x in the connection". Are there any columns I could add to get the chain between requests based on client connections?

 When used in Proxy mode, is there a gurantee that the connections to the server are used in the same way the client reuses them to send requests?

2 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 07 Apr 2015, 09:08 PM
Hello, Bernd--

Fiddler's Timeline tab set to Client Pipe Map mode is the simplest way to visually see which requests were on sent on which reused client connection. To see similar information in the Web Sessions list, your best bet would be to add a column showing the Session Flag named X-ClientPort.

No, there's no guarantee that Fiddler will reuse connections to the server in the same way that the client uses them to send requests. Inside the OnPeekAtResponseHeaders method, you could add code like:

  if ((null != oSession.oResponse) && (null != oSession.oResponse.pipeServer)) {
    oSession.oResponse.pipeServer.ReusePolicy = PipeReusePolicy.MarriedToClientPipe;
  }


This will tag the connection to the server such that it cannot be reused except by a request sent on the connection that originally established it.

Regards,
Eric Lawrence
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Bernd
Top achievements
Rank 1
answered on 07 Apr 2015, 09:51 PM
Thanks Eric! The Client-Port is a good idea.
Tags
Fiddler Classic
Asked by
Bernd
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Bernd
Top achievements
Rank 1
Share this question
or