Comments (4)
What do you mean by "interchange is active"?
from rabbitmq-c.
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.
I am sorry I think my last comment rather belonged into the issue list of your C++ wrapper.
from rabbitmq-c.
Could you post this as an issue in under SimpleAmqpClient?
from rabbitmq-c.
Related Issues (20)
- How to compile RabbitMQ for SSL HOT 3
- macOS dylib minor versions make no sense since 0.12.0 HOT 1
- amqp_basic_nack requeue doesn't set redelivered flag HOT 2
- The repository has a broken commit HOT 2
- Publishes sometimes fail silently HOT 1
- Published messages sometimes corrupted HOT 1
- Error in the value of the "basic.expiration" property
- amqp_basic_publish is blocking in non-blocking mode HOT 1
- Reply for ACK returning with no AMQP_RESPONSE_LIBRARY_EXCEPTION and library_error AMQP_STATUS_UNEXPECTED_STATE HOT 1
- Allow sending/checking heartbeat manually
- "recv_with_timeout" in "amqp_try_recv" set timeout to 0,cause infinite waiting for message! HOT 3
- Man page "amqp-publish" -> "amqp-consume" HOT 1
- OpenSSL Engine causes compilation issues on iOS
- CMake won't configure on master with BUILD_SHARED_LIBS=OFF
- rabbitmq-c/export.h”: No such file or directory HOT 4
- How to Check if RabbitMQ Server is Configured Before Binding Queues and Notifications? HOT 2
- Hello, utils. c is missing two functions now_ Microseconds and microsleeps HOT 1
- amqp_channel_open and amqp_channel_close needs called in every operation, likes in amqp_exchange_declare, amqp_queue_declare and so on HOT 3
- amqp_ssl_socket_close intermittent crash HOT 2
- Duplicate connection and channel HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rabbitmq-c.