Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ public void onClose(int code, String reason, boolean remote) {
}

// if the connection is closed by server with 1008, wait and retry
// Allow up to 10 reconnect attempts before exiting
if (code == CloseReason.CloseCodes.VIOLATED_POLICY.getCode()) {
violatedReconnectTime++;
if(violatedReconnectTime > 5) {
if(violatedReconnectTime > 10) {
log.error("onClose, code: {}, reason: {}, remote: {}, reconnectTime: {}, {}", code, reason, remote, reconnectTime, violatedReconnectTime);
System.exit(code);
} else {
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.