[gnutls-devel] GnuTLS | GnuTLS 3.7.8 MinGW64 DTLS timed out Resource temporarily unavailable (#1449)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sat Jan 28 00:21:19 CET 2023



acstime created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1449



## Description of problem:
I am not an experienced GnuTLS developer but interested and trying to help isolate confirmed behavior under MSYS2/MinGW64 port in MS Windows x64, [failure to re-handshake](https://github.com/msys2/MINGW-packages/issues/14739#issuecomment-1380526887).
Summarized test suite and dependency results posted there as well.
Everything passes except anything touching Datagram TLS (DTLS):

All dtls-* tests fail.
Four other test fail, upon debug:

```
server|<3>| ASSERT: ../../gnutls-3.7.8/lib/dtls.c[_dtls_transmit]:263
server|<3>| ASSERT: ../../gnutls-3.7.8/lib/dtls.c[_dtls_transmit]:420
client|<3>| ASSERT: ../../gnutls-3.7.8/lib/buffers.c[get_last_packet]:1190
client|<3>| ASSERT: ../../gnutls-3.7.8/lib/handshake.h[handshake_remaining_time]
:132
client|<3>| ASSERT: ../../gnutls-3.7.8/lib/buffers.c[_gnutls_handshake_io_recv_i
nt]:1456
client|<3>| ASSERT: ../../gnutls-3.7.8/lib/handshake.c[_gnutls_recv_handshake]:1
600
client|<3>| ASSERT: ../../gnutls-3.7.8/lib/kx.c[_gnutls_recv_server_kx_message]:
590
client|<3>| ASSERT: ../../gnutls-3.7.8/lib/handshake.c[handshake_client]:3140
server|<3>| ASSERT: ../../gnutls-3.7.8/lib/buffers.c[_gnutls_io_write_flush]:696

server|<3>| ASSERT: ../../gnutls-3.7.8/lib/dtls.c[_dtls_transmit]:263
server|<3>| ASSERT: ../../gnutls-3.7.8/lib/dtls.c[_dtls_transmit]:420
client[-319]: The operation timed out
server[-28]: Resource temporarily unavailable, try again.
```

Two questions:
Would dtls "timeout" possibly also cause the re-handshake failure we have observed in gnutls-cli?

How can we go about fixing it? I looked at a couple of the source files for this, they mostly involve ciphers that clearly pass the test suite on their own. It appears that some assumption about the OS doesn't work in Windows ("Resource temporarily unavailable")

What resource? It's not much for me to go on, looks like I'm stuck..


 Running the GnuTLS test suite 
Provided; see github link.



## Version of gnutls used: 3.7.8


## Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL) MinGW64 (MS Windows x64)


## How reproducible: See test link

Steps to Reproduce: See test link

 * one
 * two
 * three

## Actual results:


## Expected results:

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1449
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20230127/3bf5fbc7/attachment-0001.html>


More information about the Gnutls-devel mailing list