Build: #179 was successful Changes by Gary Russell

Code commits

Plan Repository

  • Gary Russell

    Gary Russell fee8a97532b91c4194df4e3a14e3754b2ce4c899

    GH-1026: Fix Delay with CacheMode.CONNECTION
    Fixes https://github.com/spring-projects/spring-amqp/issues/1026

    When using a `channelCheckoutTimeout` with `CacheModeConnection`,
    we incorrectly spin waiting for a connection until the timeout
    expires.

    We should only wait for a connection if the limit is exceeded.

    **cherry-pick to all supported**

    (cherry picked from commit dde7a37350e21a5bbcce26122fbc49b3dd72238b)

    # Conflicts:
    #        spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/CachingConnectionFactory.java
    #        spring-rabbit/src/test/java/org/springframework/amqp/rabbit/connection/CachingConnectionFactoryTests.java

    # Conflicts:
    #        spring-rabbit/src/test/java/org/springframework/amqp/rabbit/connection/CachingConnectionFactoryTests.java

    • spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/CachingConnectionFactory.java (version fee8a97532b91c4194df4e3a14e3754b2ce4c899)
    • spring-rabbit/src/test/java/org/springframework/amqp/rabbit/connection/CachingConnectionFactoryTests.java (version fee8a97532b91c4194df4e3a14e3754b2ce4c899)