Skip to content

Commit

Permalink
FastHttpUser: Fix ssl loading performance issue by avoiding to load c…
Browse files Browse the repository at this point in the history
…erts when they wont be used anyway.
  • Loading branch information
cyberw committed Dec 19, 2024
1 parent 961123f commit 7e256ee
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 7e256ee

Please sign in to comment.