Skip to content

Commit 728969a

Browse files
authored
Merge pull request #7 from rabbitmq/quiet-replica-stop
Avoid crash log when a replica stops because the socket is closed
2 parents 35c0922 + 5ee94a9 commit 728969a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/osiris_replica_reader.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ handle_info({'DOWN', Ref, _, _, Info},
191191
handle_info({tcp_closed, Socket},
192192
#state{name = Name, socket = Socket} = State) ->
193193
?DEBUG("osiris_replica_reader: '~s' Socket closed. Exiting...", [Name]),
194-
{stop, tcp_closed, State};
194+
{stop, normal, State};
195195
handle_info({tcp_error, Socket, Error},
196196
#state{name = Name, socket = Socket} = State) ->
197197
?DEBUG("osiris_replica_reader: '~s' Socket error ~p. Exiting...", [Name, Error]),

0 commit comments

Comments
 (0)