else
frag_len = mtu;
+ /* we normally allow fragments of zero length, to allow
+ * the packets which have zero size. On the others don't
+ * send such fragments */
+ if (frag_len == 0 && data_size > 0) {
+ ret = 0;
+ break;
+ }
+
/* Fragment offset */
_gnutls_write_uint24(offset, &mtu_data[6]);
* The DTLS protocol recommends the values of 1 sec and 60 seconds
* respectively.
*
- * If the retransmission timeout is zero then the handshake will operate
- * in a non-blocking way, i.e., return %GNUTLS_E_AGAIN.
- *
* To disable retransmissions set a @retrans_timeout larger than the @total_timeout.
*
* Since: 3.0