Giter VIP home page Giter VIP logo

Comments (8)

benhoyt avatar benhoyt commented on August 12, 2024

I don't know the code well enough to know what the exact fix should be, but I think it should be something along these lines:

  • have set_multi() call readline() with raise_exception=True and catch the _ConnectionDeadError in the except clause
  • add the rest of the keys that we haven't set successfully to the nonstored list (have to keep track of this somehow, with an index counter or something)

from python-memcached.

linsomniac avatar linsomniac commented on August 12, 2024

First of all, thanks so much for tracking this down and creating the test. I've set up a tests directory and put this test in place.

My thinking is that we will probably want to check for socket going None in the set_multi code and treat them like misses. I'm going to need to do some digging though.

from python-memcached.

linsomniac avatar linsomniac commented on August 12, 2024

I've pushed a new version which causes readline() to behave a bit more sanely. This resolves the exception from your test. Can you please review?

Thanks,
Sean

from python-memcached.

benhoyt avatar benhoyt commented on August 12, 2024

Thanks for the quick turnaround. I commented on the commit.

from python-memcached.

linsomniac avatar linsomniac commented on August 12, 2024

I could have sworn that I commented on this, but I don't see one on this comment or on the commit you commented on. I've committed a new version which I believe resolves these issues as discussed in the commit. Can you review and let me know if this looks good and if it resolves the issues you are having?

Thanks,
Sean

from python-memcached.

benhoyt avatar benhoyt commented on August 12, 2024

Yep, commit 8116cfe works and looks good to me, thanks!

from python-memcached.

linsomniac avatar linsomniac commented on August 12, 2024

I've pushed out a new release that includes this patch. Thanks again for your help on this.

from python-memcached.

benhoyt avatar benhoyt commented on August 12, 2024

No probs, thanks for fixing!

from python-memcached.

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.