How to control authenticated persistent connection

Dmitry Kurochkin dmitry.kurochkin at measurement-factory.com
Thu May 19 21:46:23 UTC 2011


Hi Jacky.

On Wed, 18 May 2011 18:07:04 -0400, unjc email <unjc.email at gmail.com> wrote:
> Hello there,
> 
> I want to know how to control the life-cycle of authenticated
> persistent connections.  I set up a workload to send HTTP requests
> with credentials to a client side proxy for NTLM authentication.  I
> know that NTLM authentication requires persistent connections on the
> client side.  I have set "pconn_use_lmt = const(2147483647)" as
> suggested on webpolygraph website.  It works perfectly.   However, I
> want to exercise the NTLM authentication every X requests - ie.  I do
> not want to perform the authentication once and stick on to
> authenticated connection(s) for all requests after.  I have tried to
> change the "pconn_use_lmt" value to "const(30)"; but I am getting many
> "-1" response-time and transaction errors on the robot console (as
> like below).  Please advise how I should set up the webpolygraph
> workload to archive the authentication test I want to run.
> 

The workload looks good.  Can you please post the errors you get?

I suspect that Polygraph fails to bind(2) the socket.  It may happen
because there are too many sockets in TIME_WAIT state.  What does the
following command print?

  $ netstat -tn | grep TIME_WAIT | wc -l

Regards,
  Dmitry

> 
> 
> 001.36| i-Ramping   6339 111.78     -1  -1.00 559    4
> 001.44| i-Ramping   6339 103.82     -1  -1.00 519    4
> 001.52| i-Ramping   6459 114.00     10   0.00 450    4
> 001.61| i-Ramping   6459 105.38     -1  -1.00 527    4
> 
> 
> 
> 
> Robot R = {
> 	kind = "R101";
> 	pop_model = {
> 		pop_distr = popUnif();
> 	};
> 	recurrence = 50%;
> 	req_rate = undef();
> 	origins = M.names;
> 	credentials = ["Domain/User[1-10000]:Password12345"];
> 	addresses = robotAddrs(authAddrScheme, theBench);
> 	pconn_use_lmt = const(30);
> 	idle_pconn_tout = 60sec;
> 	open_conn_lmt = 8;
> 	http_versions = ["1.0"];
> };
> 
> 
> 
> 
> Many thanks,
> Jacky
> _______________________________________________
> Users mailing list
> Users at web-polygraph.org
> http://www.web-polygraph.org/mailman/listinfo/users



More information about the Users mailing list