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

Add example/easyhttp, easier to run with more than one url #78

Closed
wants to merge 1 commit into from

Conversation

GuoTengda1993
Copy link

add example/easyhttp: read config and urls from client.json or such json file in same format, there are 3 differences with http/client.go: 1.tasks in taskset mode; 2.read config from json; 3.modify the message sending to master(RecordSuccess/Failure in http/client.go is confused in locust monitoring web page)

…ormat json file, there are 3 differences from http/client.go: 1.tasks in taskset mode; 2.read config from json; 3.modify the message sending to master(RecordSuccess/Failure in http/client.go is confused in locust monitoring web page)
if t.PostFile == "GET" || t.Method == "DELETE" || t.PostFile == "" {
_post = []byte(nil)
} else {
_post, err1 = ioutil.ReadFile(t.PostFile)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should avoid reading files in worker function, cache is better.

@myzhan
Copy link
Owner

myzhan commented Jan 19, 2022

No progress.

@myzhan myzhan closed this Jan 19, 2022
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

Successfully merging this pull request may close these issues.

2 participants