Giter Site home page Giter Site logo

publish msg encounting windows error code 10060(connection timeout) a long time period late after last publishing msg about simpleamqpclient HOT 8 CLOSED

alanxz avatar alanxz commented on July 28, 2024
publish msg encounting windows error code 10060(connection timeout) a long time period late after last publishing msg

from simpleamqpclient.

Comments (8)

alanxz avatar alanxz commented on July 28, 2024

With the exception of the immediate flag on BasicPublish, SimpleAmqpClient works with the RabbitMQ v3.0 broker. Using the immediate flag on the BasicPublish will result in a ConnectionException being thrown.

Googling the windows error code 10060 gets me this page: http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx Meaning the connection has timed out. Likely something between your client and the broker closes the TCP connection due to inactivity.

from simpleamqpclient.

chenyujian avatar chenyujian commented on July 28, 2024

thank you for reply.i found configuration "heartbeat" in http://www.rabbitmq.com/configure.html.
it sets to 600(seconds) by default under 2.8.7 while rabbitmq 3.0 enable heartbeat by default.

from simpleamqpclient.

alanxz avatar alanxz commented on July 28, 2024

Yes, heartbeats are the correct thing to use to mitigate this problem.

However SimpleAmqpClient and rabbitmq-c do not support heartbeating.

from simpleamqpclient.

alanxz avatar alanxz commented on July 28, 2024

Actually thats a different kind of heartbeat than I was expecting (there's another type of heartbeating that AMQP supports that I thought you were talking about). I suspect this is new. I'll have to look into this.

from simpleamqpclient.

alanxz avatar alanxz commented on July 28, 2024

I got some clarification from the RabbitMQ guys as to these heartbeats: that configuration parameter is what the broker proposes to the client when negotiating the connection with the client. The client then has the final decision of how to setup heartbeats.

In the case of rabbitmq-c and SimpleAmqpClient we don't support heartbeats currently, and disable heart beats when connecting to the broker. So that configuration parameter on the broker will not have any effect on SimpleAmqpClient or rabbitmq-c

from simpleamqpclient.

chenyujian avatar chenyujian commented on July 28, 2024

thank you for replying,i will trace this problem and make a continuously report.

from simpleamqpclient.

chenyujian avatar chenyujian commented on July 28, 2024

i think i finally find the answer,there were firewalls between servers and clients.and the firewall will close the connection after a settled time.

from simpleamqpclient.

alanxz avatar alanxz commented on July 28, 2024

Thats a pretty common cause of network drops: firewalls and NATs, they like to disconnect inactive TCP connections after a certain amount of time.

from simpleamqpclient.

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.