summaryrefslogtreecommitdiff
path: root/dev-libs/boost/files/boost-1.88.0-beast-network-sandbox.patch
blob: 4d42b8fea1ffb6476cc0028eb55d146c8b61c897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Delete a test case that tries to fail to connect to an
unconnectable address, but instead fails because network-sandbox
prevents the connection.

Bug: https://bugs.gentoo.org/954810

--- boost_1_88_0/libs/beast/test/beast/core/basic_stream.cpp~	2025-04-03 13:37:23.000000000 +0200
+++ boost_1_88_0/libs/beast/test/beast/core/basic_stream.cpp	2025-04-27 22:42:50.705597311 +0200
@@ -1014,24 +1014,6 @@ public:
         //
 
         {
-            // normal timeout
-            // Requires timeout happen before ECONNREFUSED 
-            stream_type s(ioc);
-            auto const ep = net::ip::tcp::endpoint(
-            #if 1
-                // This address _should_ be unconnectible
-                net::ip::make_address("72.5.65.111"), 1);
-            #else
-                // On Travis ECONNREFUSED happens before the timeout
-                net::ip::make_address("127.0.0.1"), 1);
-            #endif
-            s.expires_after(std::chrono::seconds(0));
-            s.async_connect(ep, connect_handler{error::timeout});
-            ioc.run_for(std::chrono::seconds(1));
-            ioc.restart();
-        }
-
-        {
             // stream destroyed
             {
                 stream_type s(ioc);