Coder Social home page Coder Social logo

requests >1.0 about locust HOT 8 CLOSED

locustio avatar locustio commented on May 9, 2024
requests >1.0

from locust.

Comments (8)

heyman avatar heyman commented on May 9, 2024

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.

sanga avatar sanga commented on May 9, 2024

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.

heyman avatar heyman commented on May 9, 2024

Oh, that sounds great! A PR would be much appreciated.

from locust.

sanga avatar sanga commented on May 9, 2024

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.

Jahaja avatar Jahaja commented on May 9, 2024

Cool. Seems like you haven't pushed the branch to github yet though? :)

from locust.

sanga avatar sanga commented on May 9, 2024

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.

EnTeQuAk avatar EnTeQuAk commented on May 9, 2024

Tested, updated to master and merged in #86 :-)

from locust.

EnTeQuAk avatar EnTeQuAk commented on May 9, 2024

Merged to master in 4aea348

from locust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.