Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have an option to generate with HttpUser not FastHttpUser #8

Open
arthurzenika opened this issue Feb 8, 2024 · 1 comment
Open

Comments

@arthurzenika
Copy link

I'm having some segfaults with FastHttpUser, and to fast track to a working version I'm switching the generated file to HttpUser for it not to segfault.

I then need to replace all self.rest( with self.client.request( for the locustfile to work.

Would it be possible to have an option for this ? I know this can probably be done with a template, but this might interest some other users.

(oh and by the way, I ♥ har2locust, it's really awesome for my use case! )

@cyberw
Copy link
Collaborator

cyberw commented Feb 11, 2024

The rest part is easy (even though rest should work for HttpUser too in more recent locust versions?). Just add --disable-plugin rest.py to your command line.

It would be interesting to see your segfaults too (or rather, your environment. if you have a locally built geventhttpclient then maybe try installing a binary one)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants