Coder Social home page Coder Social logo

Comments (6)

nedsalk avatar nedsalk commented on September 26, 2024 1

Well, it seems a good night's sleep was needed for this one. This issue is solved in #1615 (comment).

from fuels-ts.

arboleya avatar arboleya commented on September 26, 2024

This issue description looks contradictory to me, so much so that I can't reconcile that you are filing a bug and simultaneously saying it's not a pressing issue for the same PR that is still open. If there is an issue with that PR, that should be fixed over there before that gets merged, and this issue is unnecessary.

from fuels-ts.

nedsalk avatar nedsalk commented on September 26, 2024

I already spent quite some time trying to get this to work, fix it in that PR and not file this issue. Unfortunately, I couldn't get to the root of the problem. With filing this issue I wanted to unblock #1615 because this bug is not tied to introducing submitAndAwait per se, but to the underlying infrastructure and how we're using the streams API. Any SSE connection that's read via the streams API and that gets closed by the server isn't registered as closed by that same streams API.

from fuels-ts.

arboleya avatar arboleya commented on September 26, 2024

Are you saying this issue was introduced after #1374 instead of #1615?

from fuels-ts.

nedsalk avatar nedsalk commented on September 26, 2024

Correct. I'll try resolving this specific issue but we can also specify a timeout for subscriptions as is suggested by the vm client team, in which case an infinite loop would never be possible because we'd be closing the stream ourselves after that timeout. It wouldn't directly solve this issue, but this issue then should never happen because we'd close the stream ourselves at one point which'd end the stream correctly with a {value: undefined, done: true}.

from fuels-ts.

arboleya avatar arboleya commented on September 26, 2024

Then, I'd say we should pause #1615 and address this matter first. There's no harm in delaying the submitAndAwait, especially considering it'd also make the use of subscriptions more prevalent.

from fuels-ts.

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.