Skip to content

Commit af65fb9

Browse files
committed
Initialise outgoing transfer-id to 0
1 parent 73af4aa commit af65fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/rabbit_amqp_session.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
-define(MANAGEMENT_NODE_ADDRESS, <<"/management">>).
7171
-define(UINT_OUTGOING_WINDOW, {uint, ?UINT_MAX}).
7272
%% "The next-outgoing-id MAY be initialized to an arbitrary value" [2.5.6]
73-
-define(INITIAL_OUTGOING_TRANSFER_ID, ?UINT_MAX - 3).
73+
-define(INITIAL_OUTGOING_TRANSFER_ID, 0).
7474
%% "Note that, despite its name, the delivery-count is not a count but a
7575
%% sequence number initialized at an arbitrary point by the sender." [2.6.7]
7676
-define(INITIAL_DELIVERY_COUNT, ?UINT_MAX - 4).

0 commit comments

Comments
 (0)