Skip to content

Commit

Permalink
Merge pull request #5 from Schneidertm/master
Browse files Browse the repository at this point in the history
Adding more close codes & updating dependencies
  • Loading branch information
Fitblip authored Feb 17, 2020
2 parents 4d0111c + 82b4988 commit ab89693
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ For this project I used only the very bare necessities to avoid causing dependen
<dependency>
<groupId>org.java-websocket</groupId>
<artifactId>Java-WebSocket</artifactId>
<version>1.3.5</version>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
<version>1.7.30</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.2</version>
<version>2.8.6</version>
</dependency>
```
You need a java version later than Java 8u101 - earlier ones don't support the Let's Encrypt certificates used on our server.
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
<dependency>
<groupId>org.java-websocket</groupId>
<artifactId>Java-WebSocket</artifactId>
<version>1.3.5</version>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
<version>1.7.30</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.2</version>
<version>2.8.6</version>
</dependency>
</dependencies>
</project>
6 changes: 5 additions & 1 deletion src/io/calidog/certstream/BoringParts.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class BoringParts implements
private static final Logger logger = LoggerFactory.getLogger(BoringParts.class);
private final long sleepBeforeReconnect;

private HashSet<Integer> recoverableCloseCodes = new HashSet<>(Arrays.asList(1001, 1005, 1006, 1009));
private HashSet<Integer> recoverableCloseCodes = new HashSet<>(Arrays.asList(1000, 1001, 1002, 1005, 1006, 1009));

private final Supplier<WebSocketClient> webSocketClientSupplier;
private WebSocketClient webSocketClient;
Expand Down Expand Up @@ -63,6 +63,10 @@ public void onClose(int i, String s, boolean b) {

webSocketClient = webSocketClientSupplier.get();
}
else
{
logger.warn("OnClose was called wih i = " + i + ", s = "+s + ", b = b");
}
}

@Override
Expand Down

0 comments on commit ab89693

Please sign in to comment.