Code Monkey home page Code Monkey logo

Comments (5)

ColinSullivan1 avatar ColinSullivan1 commented on August 23, 2024

Would you be able to run the streaming server with the debug (-SD) parameter and provide the output?

CC @kozlovic

from stan.net.

MGEHub avatar MGEHub commented on August 23, 2024

I think I have the same issue too. When I use a simple console app with simple example everything seems ok but on my actual code with the same configurations it's somehow erratic when durable name is set. I went through the STAN's client code and saw that it doesn't get any callback from internal nats connection's subscription:

inboxSub = sc.NATSConnection.SubscribeAsync(inbox, sc.processMsg);

internal void processMsg(object sender, MsgHandlerEventArgs args)
{
bool isClosed = false;
AsyncSubscription sub = null;
Msg raw = null;

        MsgProto mp = new MsgProto();
        ProtocolSerializer.unmarshal(args.Message.Data, mp);

        raw = args.Message;

        lock (mu)
        {
            isClosed = (nc == null);
            subMap.TryGetValue(raw.Subject, out sub);
        }

        if (isClosed || sub == null)
            return;

        sub.processMsg(mp);
    }

It seems that some delay or time dependent issue is causing this.

from stan.net.

harold-toledo avatar harold-toledo commented on August 23, 2024

I have not experienced this anymore, and I am almost convinced now that what I was experiencing was not caused by anything related to the platform. My particular case involve durable queue groups and after some time I realized that I was using the same subject+queue for my local testing than the instances of the application running in our development environment, so my guess is that most probably all the other messages were being delivered to the other instances running in the development environment.

from stan.net.

MGEHub avatar MGEHub commented on August 23, 2024

So I guess that's not the same issue. Thanks for clarifying this.

from stan.net.

ColinSullivan1 avatar ColinSullivan1 commented on August 23, 2024

I'm closing this for now, please re-open if this remains an issue.

from stan.net.

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.