Coder Social home page Coder Social logo

Comments (9)

quarkus-bot avatar quarkus-bot commented on July 21, 2024

/cc @Ladicek (smallrye), @jmartisk (smallrye), @phillip-kruger (smallrye), @radcortez (smallrye)

from quarkus.

mnguetsa avatar mnguetsa commented on July 21, 2024

@geoand @cescoffier Any idea how I could do this? 😬

from quarkus.

geoand avatar geoand commented on July 21, 2024

cc @ozangunalp

from quarkus.

cescoffier avatar cescoffier commented on July 21, 2024

No, except modifying the AMQP client options, I do not see another approach.

I would disable the health check and implement a custom one instead.

from quarkus.

mnguetsa avatar mnguetsa commented on July 21, 2024

No, except modifying the AMQP client options, I do not see another approach.

I would disable the health check and implement a custom one instead.

Hi @cescoffier
I tried modifying the clients options too. But I realized setTcpKeepAlive(true) had no effect on keeping the connection. Or is there another option I missed in the AMQP client options? So far this is what I did with the AMQP client Options:

@ApplicationScoped
public class AmqpConfigurationProvider {
  @ConfigProperty(name = "amqp-port")
  int port;

  @ConfigProperty(name = "amqp-use-ssl")
  boolean useSsl;

  @Produces
  @Identifier("custom-amqp-client-options")
  public AmqpClientOptions getNamedOptions() {
    return new AmqpClientOptions().setTcpKeepAlive(true).setPort(port).setSsl(useSsl);
  }
}

I would use the health check deactivation as last solution. If you know another AMQP option I can try please let me know.
Thanks a lot

from quarkus.

cescoffier avatar cescoffier commented on July 21, 2024

Which broker are you using? Do they use an idle timeout? Could you potentially send fake frames regularly to keep it open?

from quarkus.

ozangunalp avatar ozangunalp commented on July 21, 2024

I think AMQP 1.0 broker in Azure (I don't remember the product name) had a similar behaviour.

from quarkus.

ozangunalp avatar ozangunalp commented on July 21, 2024

Probably, you are sending the TCP keep-alive but the server doesn't respect it and closes the connection anyway.

from quarkus.

cescoffier avatar cescoffier commented on July 21, 2024

Cloud-based broker tends to cut connections quickly if there are no L7 frames.

from quarkus.

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.