运行 ab 命令时出现 SSL 读取失败错误

运行 ab 命令时出现 SSL 读取失败错误

当我在 Mac 终端上运行以下命令时:
ab -n 1000 -c 200 "https://someurl..." 我收到以下错误:

This is ApacheBench, Version 2.3 <$Revision: 1901567 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.local.lifewire.com (be patient)
SSL read failed (5) - closing connection
8364360000:error:02FFF020:system library:func(4095):Broken pipe:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:80:
SSL handshake failed (5).
8364360000:error:02FFF020:system library:func(4095):Broken pipe:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:80:

Test aborted after 10 failures

apr_socket_connect(): Connection reset by peer (54)
Total of 3 requests completed

我注意到该命令运行良好直到 -n 500 和 -c 100
当我尝试使用 -n 1000 -c 100 运行时出现以下错误:

This is ApacheBench, Version 2.3 <$Revision: 1901567 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.local.url.com (be patient)
SSL handshake failed (5).
8364360000:error:02FFF020:system library:func(4095):Broken pipe:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:80:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
SSL handshake failed (5).
8364360000:error:02FFF036:system library:func(4095):Connection reset by peer:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:43:
Completed 100 requests

Test aborted after 10 failures

apr_socket_connect(): Connection reset by peer (54)
Total of 174 requests completed

这可能是什么原因造成的?实际上,这是随机的。当最后一个完成后,我尝试再次运行 ab -n 500 -c 100 URL,然后我收到此消息:

This is ApacheBench, Version 2.3 <$Revision: 1901567 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.local.url.com (be patient)
SSL handshake failed (5).
8364360000:error:02FFF020:system library:func(4095):Broken pipe:/AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/ssl/tls13_legacy.c:80:

Test aborted after 10 failures

apr_socket_connect(): Connection reset by peer (54)
Total of 2 requests completed

我正在对本地 URL 进行负载测试

相关内容