From 73f0580de773bb290dec5486adafb335d231af43 Mon Sep 17 00:00:00 2001 From: Manuel Sangoi Date: Thu, 19 Jun 2014 11:28:06 +0200 Subject: [PATCH] Default LwM2m server will now wait until all retransmissions failed before timing out. --- leshan-core/src/main/java/leshan/server/lwm2m/LwM2mServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leshan-core/src/main/java/leshan/server/lwm2m/LwM2mServer.java b/leshan-core/src/main/java/leshan/server/lwm2m/LwM2mServer.java index 5e0d2c32..ae113e9e 100644 --- a/leshan-core/src/main/java/leshan/server/lwm2m/LwM2mServer.java +++ b/leshan-core/src/main/java/leshan/server/lwm2m/LwM2mServer.java @@ -97,7 +97,7 @@ public LwM2mServer(InetSocketAddress localAddress, ClientRegistry clientRegistry RegisterResource rdResource = new RegisterResource(clientRegistry); this.coapServer.add(rdResource); - CaliforniumBasedRequestHandler handler = new CaliforniumBasedRequestHandler(endpoint); + CaliforniumBasedRequestHandler handler = new CaliforniumBasedRequestHandler(endpoint, null, 0); // register the request handler as listener in order to cancel // observations and free up resources when clients unregister clientRegistry.addListener(handler);