GithubHelp home page GithubHelp logo

Comments (4)

alanxz avatar alanxz commented on June 26, 2024

What do you mean by "interchange is active"?

from rabbitmq-c.

stonemaster avatar stonemaster commented on June 26, 2024

Hi,

I have a problem with a call to amqp_simple_wait_frame too, but as I don't really understand leonidas61 issue request, I am just posting the situation in my code base here:

  • RabbitMQ messages are sent through a thread pool which internally sends messages to the rabbitmq server using your C++ wrapper. Sometimes it happens that the application doesn't quit because the thread pool hangs in a call to Channel::BasicPublish. This actually runs down to the code line CheckForError(amqp_simple_wait_frame(m_connection, &frame)); in ChannelImpl::GetNextFrameFromBroker.
  • The stack trace looks like this:
    #0 0x0000000000f7fb0c in recv ()
    #1 0x0000000000ea7e59 in wait_frame_inner ()
    #2 0x0000000000ea7f64 in amqp_simple_wait_frame ()
    #3 0x0000000000de2fc4 in AmqpClient::Detail::ChannelImpl::GetNextFrameFromBroker (this=0x1323d6d0, frame=..., timeout=...) at SimpleAmqpClient/ChannelImpl.cpp:344
    #4 0x0000000000de3392 in AmqpClient::Detail::ChannelImpl::GetNextFrameFromBrokerOnChannel (this=0x1323d6d0, channel=2, frame_out=..., timeout=...)
    at /SimpleAmqpClient/ChannelImpl.cpp:358
    #5 0x0000000000ddf086 in GetMethodOnChannel<boost::array<unsigned int, 2ul> > (timeout=..., expected_responses=..., frame=..., channel=, this=)
    at /SimpleAmqpClient/ChannelImpl.h:106
    #6 GetMethodOnChannel<boost::array<unsigned int, 2ul> > (timeout=..., expected_responses=..., frame=..., channel=, this=0x1323d6d0)
    at /SimpleAmqpClient/Channel.cpp:287
    #7 AmqpClient::Channel::BasicPublish (this=0xc6ae2a0, exchange_name=..., routing_key=..., message=..., mandatory=, immediate=)
    at /SimpleAmqpClient/Channel.cpp:311
  • It seems as if the connection died (which might be possible because the network in my case sometimes has some latency) and the recv call never returns actually blocking the thread pool and thus stopping the application from quitting.

I'm actually quite clueless right now so maybe you have an idea what might be causing this problems. If you need any more debug information just tell me.

Cheers,
André

from rabbitmq-c.

stonemaster avatar stonemaster commented on June 26, 2024

I am sorry I think my last comment rather belonged into the issue list of your C++ wrapper.

from rabbitmq-c.

alanxz avatar alanxz commented on June 26, 2024

Could you post this as an issue in under SimpleAmqpClient?

from rabbitmq-c.

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.