Skip to content

Commit df2dd96

Browse files
Merge pull request #14329 from rabbitmq/initial-transfer-id
Initialise sequence numbers to 0
2 parents 78d7041 + e2af52f commit df2dd96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/src/rabbit_amqp_session.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@
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]
76-
-define(INITIAL_DELIVERY_COUNT, ?UINT_MAX - 4).
76+
-define(INITIAL_DELIVERY_COUNT, 0).
7777
-define(INITIAL_OUTGOING_DELIVERY_ID, 0).
7878
-define(UINT(N), {uint, N}).
7979
%% [3.4]

0 commit comments

Comments
 (0)