Giter Club home page Giter Club logo

Comments (5)

prolic avatar prolic commented on May 24, 2024

from event-store-client.

jvdlaar avatar jvdlaar commented on May 24, 2024

Hmm building a small reproducable script proves to be quite hard because everything is caused by the order in which objects are destructed. So if the ResourceOutputStream part of the console logger is destructed before the connection then all bad things happen.

I solved it for myself by not using the useConsoleLogger function but by using the useCustomLogger which changed the desctruction process in a way that works.

Best solution would be that the __destruct function in EventStoreAsyncNodeConnection would check if the connection is still alive and then you can close the connection manually.

from event-store-client.

prolic avatar prolic commented on May 24, 2024

The closing of the event-store-connection will not close the output (which is \STDOUT). The exception says that \STDOUT is not writeable. I'm not sure yet under which conditions \STDOUT can be not writeable.

By the way:
You can call close() as often as you want on the connection. See also this test-case: https://github.com/prooph/event-store-client/blob/master/tests/event_store_connection_should.php#L46-L51

I created a ticket here for now: amphp/log#1

Let's see what the amp-guys can say.

from event-store-client.

jvdlaar avatar jvdlaar commented on May 24, 2024

Thank you very much!

from event-store-client.

prolic avatar prolic commented on May 24, 2024

@jvdlaar Amp team confirms this is a problem on their side, so I'm closing this here. You can track the related issue and check once it is resolved or further discuss there. I cannot do something about it at this point.

from event-store-client.

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.