Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cf-dev] DTLS session disconnects after ~30 sec.

Hi Christian,

you use "setStaleConnectionThreshold(60)" in your "CoapDtlsSupport.createConnector".
That would remove your dtls session after 60s without usage. 
Enlarge that value to the value you want.

Mit freundlichen Grüßen / Best regards 

Achim Kraus

(INST/ECS4) 
Bosch Software Innovations GmbH | Stuttgarter Straße 130 | 71332 Waiblingen | GERMANY | http://www.bosch-si.com 

Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Dr.-Ing. Thorsten Lücke; Geschäftsführung: Dr. Stefan Ferber, Michael Hahn



From: cf-dev-bounces@xxxxxxxxxxx <cf-dev-bounces@xxxxxxxxxxx> On Behalf Of Christian Tzolov
Sent: Donnerstag, 14. Juni 2018 15:26
To: cf-dev@xxxxxxxxxxx
Subject: [cf-dev] DTLS session disconnects after ~30 sec.

Hello there, 

I've been hacking the CoapShell (https://github.com/tzolov/coap-shell) but it seems like i am unable to control the DTLS IDLE timeout. 

When connected over DTLS to coaps://http://californium.eclipse.org:5684 or to my local IKEA gateway i get disconnected after about 30 sec IDLE period.

I've tried to set various timeouts such as DtlsConnection's autoResumptionTimeoutMillis, as well as Endpoint's DTLS_AUTO_RESUME_TIMEOUT and  TCP_CONNECTION_IDLE_TIMEOUT. 

But the problem remains. 

Am i doing it wrong or perhaps missing something? 

Would appreciate your help

Cheers,
Christian

Back to the top