[gnutls-help] Fwd: problem with dtls heartbeat pong reception in v3.4.x
olivier.soldano at savoirfairelinux.com
Fri Sep 30 15:24:17 CEST 2016
I'm currently implementing a heartbeat sequence in my project,
and I'm encountering a few hiccups, namely trying to get a pong after a ping,
and receiving a GNUTLS_E_UNEXPECTED_PACKET.
After a few investigations I diagnocised a potential error on my behalf.
I enable heartbeat with the function gnutls_heartbeat_enable(session, GNUTLS_HB_LOCAL_ALLOWED_TO_SEND) in order to be able to send pings (heartbeat.c line 171)
but this configuration generates the previous error when reaching the function
_gnutls_heartbeat_handle (heartbeat.c line 323) due to needing the function gnutls_heartbeat_enable(session, GNUTLS_HB_PEER_ALLOWED_TO_SEND).
is it possible to configure gnutls_heartbeat_enable with both GNUTLS_HB_LOCAL_ALLOWED_TO_SEND
and GNUTLS_HB_PEER_ALLOWED_TO_SEND at the same time?
Savoir Faire Linux
More information about the Gnutls-help