c# - How to avoid SSL handshakes in load testing? -


i writing load test project makes lot of https requests. comparing result http requests, https requests taking lot more time in average page response time. i'm suspecting because every webtestrequest sent goes through whole ssl handshakes.

after digging around, found out there called httpwebrequest.unsafeauthenticatedconnectionsharing property, can set true httpwebrequest. msdn states,

if property set true, connection used retrieve response remains open after authentication has been performed. in case, other requests have property set true may use connection without re-authenticating.

this person agrees property can allow me analyze page response time without ssl handshakes.

so, does know how can use httpwebrequest.unsafeauthenticatedconnectionsharing property webtestrequest class?

or, is there other ways achieve similar behavior webtestrequest class?

so, after more digging, found out visual studio (2008 in case) has load test setting called webtest connection model under run settings. set connection per user default. changed connection pool. average page response time has gone down point similar http traffic, , not see handshakes after initial connections.

more webtest connection model setting.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -