Skip to content

Commit

Permalink
fix: do not refreshSockets after closing socket. If servers are inten…
Browse files Browse the repository at this point in the history
…tionally rejecting connections, refreshSockets-after-closing-socket on client side may cause infinite loop of opening and closing (reset on server side) connections. (rsocket#702)

Signed-off-by: 刘禅 <[email protected]>
  • Loading branch information
xiazuojie authored and robertroeser committed Oct 11, 2019
1 parent f071c41 commit eb3ba18
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ private class WeightedSocket extends AbstractRSocket implements LoadBalancerSock
activeSockets.remove(WeightedSocket.this);
logger.debug(
"Removed {} from factory {} from activeSockets", WeightedSocket.this, factory);
refreshSockets();
})
.subscribe();

Expand Down

0 comments on commit eb3ba18

Please sign in to comment.