[gnutls-devel] GnuTLS | tests: simplify shell-script usage (!1337)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Mon Sep 28 16:57:15 CEST 2020
Daiki Ueno commented on a discussion: https://gitlab.com/gnutls/gnutls/-/merge_requests/1337#note_419791566
Looks like this is caused by an inherent race condition in the scripts. If I change the concurrency to 1, it doesn't happen.
The problem is that, between the timings when a free port is detected and when the port is actually used, other scripts can use the detected port if tests are run in parallel.
One idea to solve it is to create a temporary file as a lock, and synchronize the logic. Another idea is to extend gnutls-serv to use ephemeral port something like [NSS bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1555554), though that would require more effort.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1337#note_419791566
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/20200928/8f1f166c/attachment.html>
More information about the Gnutls-devel
mailing list