From 8ca54a03ea08a7b0cf0a402018f329bd93124216 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 5 Sep 2020 20:30:26 +0200 Subject: [PATCH] test1541: remove since it is a known bug A shared connection cache is not thread-safe is a known issue. Stop testing this until we believe this issue is addressed. Reduces occasional test failures we don't care about. The test code in lib1541.c is left in git to allow us to restore it when we get to fix this. Closes #5922 --- docs/KNOWN_BUGS | 2 +- tests/data/Makefile.inc | 2 +- tests/data/test1541 | 34 ---------------------------------- tests/libtest/Makefile.inc | 2 +- tests/libtest/lib1541.c | 9 ++++++++- 5 files changed, 11 insertions(+), 38 deletions(-) delete mode 100644 tests/data/test1541 diff --git a/docs/KNOWN_BUGS b/docs/KNOWN_BUGS index bc77913b6..8e129c34b 100644 --- a/docs/KNOWN_BUGS +++ b/docs/KNOWN_BUGS @@ -761,7 +761,7 @@ problems may have been fixed or changed somewhat since this was written! handle share a connection cache, but due to how connections are used they are still not thread-safe when used shared. - See https://github.com/curl/curl/issues/4915 + See https://github.com/curl/curl/issues/4915 and lib1541.c 11.12 'no_proxy' string-matches IPv6 numerical addreses diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 8a334df10..3eeec29b6 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -185,7 +185,7 @@ test1508 test1509 test1510 test1511 test1512 test1513 test1514 test1515 \ test1516 test1517 test1518 test1519 test1520 test1521 test1522 test1523 \ test1524 test1525 test1526 test1527 test1528 test1529 test1530 test1531 \ test1532 test1533 test1534 test1535 test1536 test1537 test1538 test1539 \ -test1540 test1541 \ +test1540 \ \ test1550 test1551 test1552 test1553 test1554 test1555 test1556 test1557 \ test1558 test1559 test1560 test1561 test1562 test1563 test1564 test1565 \ diff --git a/tests/data/test1541 b/tests/data/test1541 deleted file mode 100644 index e18bb47df..000000000 --- a/tests/data/test1541 +++ /dev/null @@ -1,34 +0,0 @@ - - - -HTTP -HTTP GET -multi-threaded -connection-sharing - - - -# Server-side - - - -# Client-side - - -http - - -lib1541 - - -connection sharing using 67 parallel threads for 7 seconds - - -http://%HOSTIP:%HTTPPORT/1 - - - -# Verify data after the test has been "shot" - - - diff --git a/tests/libtest/Makefile.inc b/tests/libtest/Makefile.inc index dc2008fa8..1b1792df5 100644 --- a/tests/libtest/Makefile.inc +++ b/tests/libtest/Makefile.inc @@ -54,7 +54,7 @@ noinst_PROGRAMS = chkhostname libauthretry libntlmconnect \ lib1518 lib1520 lib1521 lib1522 lib1523 \ lib1525 lib1526 lib1527 lib1528 lib1529 lib1530 lib1531 lib1532 lib1533 \ lib1534 lib1535 lib1536 lib1537 lib1538 lib1539 \ - lib1540 lib1541 \ + lib1540 \ lib1550 lib1551 lib1552 lib1553 lib1554 lib1555 lib1556 lib1557 \ lib1558 lib1559 lib1560 lib1564 lib1565 lib1567 \ lib1591 lib1592 lib1593 lib1594 lib1596 \ diff --git a/tests/libtest/lib1541.c b/tests/libtest/lib1541.c index f3b41f5be..c47c54e25 100644 --- a/tests/libtest/lib1541.c +++ b/tests/libtest/lib1541.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 2019, Daniel Stenberg, , et al. + * Copyright (C) 2019 - 2020, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -19,6 +19,13 @@ * KIND, either express or implied. * ***************************************************************************/ +/* + * KNOW_BUGS "A shared connection cache is not thread-safe" + * + * This source code was used to verify shared connection cache but since this + * is a known issue the test is no longer built or run. This code is here to + * allow for testing once someone gets to work on fixing this. + */ #include "test.h" #include "testutil.h"