Comments (8)
Hi! Yes we do. Currently however, the code relies on some event hooks that was removed in Requests 1.0, so there's some code in the HTTP client that needs to be rewritten before it can happen.
from locust.
True. I need locust on top of requests 1.1 so I started rewriting locust/client.py myself (I posted the question just to check you hadn't already been doing that in unpublished branch). The code I have is based on requests head (which added a response.elapsed attrib which gives you the response time). When requests 1.2 is released (which I think should be soon) and I shake the last bugs out of the migrated locust I can post a PR if you like.
from locust.
Oh, that sounds great! A PR would be much appreciated.
from locust.
apologies for radio silence on this. I have a branch against requests 1.2 that passes tests and appears to work. Would still like to test it a bit more though.
from locust.
Cool. Seems like you haven't pushed the branch to github yet though? :)
from locust.
Pushed here:
https://github.com/sanga/locust/compare/requests_1_2_squashed
A couple of points to note. I haven't tested this recently, but as I recall the tests were passing and it worked at least in my setup. Secondly, keep_alives are enabled in that branch. And as I recall they are disabled in locust. That would be the last thing so far as I'm aware. Lastly, probably still needs more testing/clean up etc, but if you fancy looking through then go ahead.
Hmmmm... when I look at it now if looks like a depressingly small diff for something that needed a decent amount of testing to get working.
from locust.
Tested, updated to master and merged in #86 :-)
from locust.
Merged to master in 4aea348
from locust.
Related Issues (20)
- SocketIOUser send method supports specific subscribe request HOT 1
- Statistics not visible while testing WebSockets using User module
- Python Crash during running distributed mode HOT 2
- Workers shutting down with getting no response from master after stopping or ending a load run HOT 3
- Need http2 requests support HOT 1
- RPS is not increasing as the number of users HOT 6
- My API call fails in locust mode HOT 2
- Custom parameters incomplete display HOT 1
- extend web ui not working since 2.22.0 HOT 4
- Users making more request than expected. HOT 1
- cannot open dashboard and console error shows 'the server responded with a MIME type of "text/plain".' HOT 1
- cannot open dashboard and console error shows 'the server responded with a MIME type of "text/plain".' HOT 6
- Setting STATS_NAME_WIDTH does not actually change the width of the stats name column HOT 1
- [ModernUI] HTML entities are incorrectly escaped in generated report
- Getting "NameError: name 'open' is not defined" error while running Locust test scenarios HOT 5
- Locust stops sending requests (boto3 / sqs) HOT 11
- The run_single_user mode doesn't fire some of the events
- Locust --processes argument generating multiple html reports HOT 4
- `'NoneType' object has no attribute 'get'` when `stream=True` in `FastHttpSession.request` HOT 2
- Would it be feasible/possible to add new event hook prior to request being made HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from locust.