mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 17:52:54 +03:00
GnuTLS currently does not retry to send the Client Hello packets if there was no (Server Hello) response. This was never correctly implemented. src/coap_gnutls.c: Fix receive_timout() so that it differentiates between DTLS and TLS. If DTLS, if data has already been read in, indicate this. if this is a coap_dtls_handle_timeout() call, only check readfds (writefds will always be true, causing confusion). Set DTLS timeouts where appropriate. Update coap_dtls_*_timeout() functions to return the correct values. include/coap2/coap_dtls.h: src/coap_gnutls.c: src/coap_io.c: src/coap_notls.c: src/coap_openssl.c: src/coap_tinydtls.c: Add in coap_tick_t now parameter to coap_dtls_get_timeout() for better accuracy.