[Bug]: Real Delay test considers Unexpected EOF and HTTP 526 and 521 as success #5205
Open
2 tasks done
Labels
bug
Something isn't working
预期情况
When HTTP response status code 526 or 521 is received in Real Delay testing, The delay column should be -1
实际情况
When HTTP response status code 526 or 521 is received in Real Delay testing, The delay column is some positive integer.
复现方法
Create a vless+ws+tls+cdn which will fail with HTTP response status code:
![image](https://private-user-images.githubusercontent.com/5326305/337880836-cc40e79b-d573-4614-b205-c653ab1152f5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MTgwODEsIm5iZiI6MTcxOTkxNzc4MSwicGF0aCI6Ii81MzI2MzA1LzMzNzg4MDgzNi1jYzQwZTc5Yi1kNTczLTQ2MTQtYjIwNS1jNjUzYWIxMTUyZjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDJUMTA1NjIxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NWVlZTUyOWE3YTQyYzg0NGFiNDcyMjk4Y2JmZTE5YWM3OWJlMTJlZTNlMTMzZTZlNDM0MGJmZDkzYTVkYTdkZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.dVKljQp_8YNbWdlKVogDhsI-vXJ_qnD8iPXIA3_Wijw)
Invalid SSL certificate Error code 526 or Web server is down Error code 521
Test config using Real Delay
日志信息
Initial Configuration
Start service (2024/06/08 17:36:11)...
*configSpeedtest.json
Xray 1.8.11 (Xray, Penetrates Everything.) 45ab4cb (go1.22.2 windows/amd64)
A unified platform for anti-censorship.
2024/06/08 17:36:11 [Info] infra/conf/serial: Reading config: configSpeedtest.json
2024/06/08 17:36:11 [Debug] app/log: Logger started
2024/06/08 17:36:11 [Debug] app/proxyman/inbound: creating stream worker on 127.0.0.1:10829
2024/06/08 17:36:11 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:10829
2024/06/08 17:36:11 [Warning] core: Xray 1.8.11 started
2024/06/08 17:36:12 [Info] [3300009408] proxy/http: request to Method [GET] Host [www.gstatic.com] with URL [http://www.gstatic.com/generate_204]
2024/06/08 17:36:12 [Info] [3300009408] app/dispatcher: taking detour [proxy10829] for [tcp:www.gstatic.com:80]
2024/06/08 17:36:12 127.0.0.1:57124 accepted http://www.gstatic.com/generate_204 [http10829 -> proxy10829]
2024/06/08 17:36:12 [Info] [3300009408] transport/internet/websocket: creating connection to tcp:REDACTED:443
2024/06/08 17:36:12 [Info] [3300009408] proxy/vless/outbound: tunneling request to tcp:www.gstatic.com:80 via REDACTED:443
2024/06/08 17:36:12 [Debug] transport/internet: dialing to tcp:REDACTED:443
2024/06/08 17:36:13 [Warning] [3300009408] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > proxy/vless/outbound: failed to write A request payload > transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://REDACTED/REDACTED): 526 > websocket: bad handshake
2024/06/08 17:36:13 [Warning] [3300009408] proxy/http: failed to read response from www.gstatic.com > io: read/write on closed pipe
额外信息
v2rayN 6.45
我确认已更新至最新版本
我确认已查询历史issues
The text was updated successfully, but these errors were encountered: