Giter Club home page Giter Club logo

Comments (3)

nrempel avatar nrempel commented on August 21, 2024

I've seen this now as well.

I believe it occurs when you try to make a connection to the node pool while it is already open.

For several services, a connection is made on page load to verify a proof request. If you try to load the page several times in quick succession you might see this.

Currently, we open and close pool and wallet connections right before and after every interaction with the wallet/ledger.

from greenlight.

shader avatar shader commented on August 21, 2024

Hmm. I ran into that issue on my very first time visiting that service, so I don't think it should been caused by that. Unless it was connecting to the node pool for its own reasons, and I opened the URL too quickly after it started?

Either way, that should probably be insulated a little more from the user. I would have thought that the connection pooling system should be able to handle more than one simultaneous connection though... That or reuse the existing connection to send another message, unless it's using one of ZMQ's req/rep pairs, which cannot send another message until the previous is handled.

from greenlight.

nrempel avatar nrempel commented on August 21, 2024

Currently, we use a context manager to open/close a connection to the wallet and ledger on a per-transaction basis.

This is very much a WIP so if you see something that can be improved, I encourage you to dig in.

from greenlight.

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.