Skip to content

Commit

Permalink
Use only 1 DTLS receiver thread by default for LWM2M client.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Feb 7, 2020
1 parent 9f3cb0a commit 5496ad9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ protected Connector createSecuredConnector(DtlsConnectorConfig dtlsConfig) {
if (incompleteConfig.getConnectionThreadCount() == null) {
dtlsConfigBuilder.setConnectionThreadCount(1);
}
// Use only 1 thread to receive DTLS data by default
if (incompleteConfig.getReceiverThreadCount() == null) {
dtlsConfigBuilder.setReceiverThreadCount(1);
}

// Deactivate SNI by default
// TODO should we support SNI ?
Expand Down

0 comments on commit 5496ad9

Please sign in to comment.