Skip to content

Commit 8d12d31

Browse files
authored
To fix the intermittent connection drops and timeouts experienced by some customers. (#387)
1 parent 136376b commit 8d12d31

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

azure-servicebus/azure-servicebus.pom

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.microsoft.azure</groupId>
66
<artifactId>azure-servicebus</artifactId>
7-
<version>1.2.16</version>
7+
<version>1.2.17</version>
88
<licenses>
99
<license>
1010
<name>The MIT License (MIT)</name>

azure-servicebus/src/main/java/com/microsoft/azure/servicebus/amqp/CustomIOHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public void onConnectionLocalOpen(Event event)
2020

2121
Transport transport = Proton.transport();
2222
transport.setMaxFrameSize(AmqpConstants.MAX_FRAME_SIZE);
23+
// To fix connection drops that the client recognizes only with a delay of 15 or 20 minutes
24+
transport.setIdleTimeout(60000);
2325
transport.sasl();
2426
transport.setEmitFlowEventOnSend(false);
2527
transport.bind(connection);

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<proton-j-version>0.31.0</proton-j-version>
1414
<junit-version>4.12</junit-version>
1515
<slf4j-version>1.7.0</slf4j-version>
16-
<client-current-version>1.2.16</client-current-version>
16+
<client-current-version>1.2.17</client-current-version>
1717
</properties>
1818

1919
<modules>

0 commit comments

Comments
 (0)