Skip to content

Commit

Permalink
Merge pull request #3013 from locustio/FastHttpUser-fix-ssl-loading-p…
Browse files Browse the repository at this point in the history
…erformance-issue

FastHttpUser: Fix ssl loading performance issue by avoiding to load certs when they wont be used anyway
  • Loading branch information
cyberw authored Dec 19, 2024
2 parents 961123f + 7e256ee commit 0a1dbc4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions locust/contrib/fasthttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ def _construct_basic_auth_str(username, password):


def insecure_ssl_context_factory():
context = gevent.ssl.create_default_context()
context.check_hostname = False
context.verify_mode = gevent.ssl.CERT_NONE
return context
return gevent.ssl._create_unverified_context()


class FastHttpSession:
Expand Down

0 comments on commit 0a1dbc4

Please sign in to comment.