客户端使用vmess WebSocket时,日志频繁打印错误:ws closed: 1000
Operating system
Windows
System version
windows 11
Installation type
Original sing-box Command Line
If you are using a graphical client, please provide the version of the client.
sing-box version 1.11.1
Version
sing-box version 1.11.1
Environment: go1.23.5 windows/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_acme,with_clash_api
Revision: 92d245ad040cbda2f84b21c2a847a470e532c179
CGO: disabled
Description
客户端使用vmess WebSocket时,日志频繁打印错误,但WebSocket 1000代码应该是 WebSocket 规范定义的正常关闭。 ERROR[0002] [754996886 613ms] connection: connection download closed: ws closed: 1000
Reproduction
客户端配置: { "tag": "vmess", "type": "vmess", "server": "", "server_port": 443, "tcp_multi_path": true, "uuid": "", "security": "auto", "alter_id": 0, "packet_encoding": "packetaddr", "tls": { "alpn": "h3", "enabled": true, "server_name": "" }, "transport": { "type": "ws", "path": "/", "headers": { "Host": "" }, "max_early_data": 2048, "early_data_header_name": "Sec-WebSocket-Protocol" } } 服务器配置: { "type": "vmess", "listen": "::", "listen_port": 80, "tcp_multi_path": true, "users": [ { "uuid": "_", "alterId": 0 } ], "transport": { "type": "ws", "path": "/", "max_early_data": 2048, "early_data_header_name": "Sec-WebSocket-Protocol" }, "multiplex": { "enabled": true } }
Logs
ERROR[0002] [754996886 613ms] connection: connection download closed: ws closed: 1000
ERROR[0002] [1282557281 614ms] connection: connection download closed: ws closed: 1000
ERROR[0011] [3165150006 625ms] connection: connection download closed: ws closed: 1000
ERROR[0016] [1089799141 598ms] connection: connection download closed: ws closed: 1000
ERROR[0047] [1724436289 564ms] connection: connection download closed: ws closed: 1000
ERROR[0063] [1184896008 31.21s] connection: connection download closed: ws closed: 1000
ERROR[0117] [789479292 612ms] connection: connection download closed: ws closed: 1000
ERROR[0117] [1715243633 615ms] connection: connection download closed: ws closed: 1000
ERROR[0119] [4203842105 31.2s] connection: connection download closed: ws closed: 1000
ERROR[0153] [3854616008 541ms] connection: connection download closed: ws closed: 1000
ERROR[0153] [1739106621 574ms] connection: connection download closed: ws closed: 1000
ERROR[0153] [2978942574 607ms] connection: connection download closed: ws closed: 1000
ERROR[0164] [4169660922 1m31s] connection: connection download closed: ws closed: 1000
Supporter
- [ ] I am a sponsor
Integrity requirements
- [x] I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
- [x] I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
- [x] I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
- [x] I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
The server is now in a new version. The server creates multiple VLESS+TLS+reality, which cannot be connected concurrently. No matter it is a single connection or load balancing, only one can communicate with the client. I used the same configuration created by XRAY on the server side and used the SINGBOX client. There is no problem, which proves that there is no problem with the client. The new version of the server has a BUG. Please fix it.
The server is now in a new version. The server creates multiple VLESS+TLS+reality, which cannot be connected concurrently. No matter it is a single connection or load balancing, only one can communicate with the client. I used the same configuration created by XRAY on the server side and used the SINGBOX client. There is no problem, which proves that there is no problem with the client. The new version of the server has a BUG. Please fix it.
Do you know which service version is normal?
1.10.5,我记得,我想试下装回这个版本,怎么装回去呀,我想试下能不能正常
Mr Yang @.***
------------------ 原始邮件 ------------------ 发件人: "SagerNet/sing-box" @.>; 发送时间: 2025年2月13日(星期四) 下午5:55 @.>; 抄送: "Mr @.@.>; 主题: Re: [SagerNet/sing-box] 客户端使用vmess WebSocket时,日志频繁打印错误:ws closed: 1000 (Issue #2580)
The server is now in a new version. The server creates multiple VLESS+TLS+reality, which cannot be connected concurrently. No matter it is a single connection or load balancing, only one can communicate with the client. I used the same configuration created by XRAY on the server side and used the SINGBOX client. There is no problem, which proves that there is no problem with the client. The new version of the server has a BUG. Please fix it.
Do you know which service version is normal?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***> freevern left a comment (SagerNet/sing-box#2580)
The server is now in a new version. The server creates multiple VLESS+TLS+reality, which cannot be connected concurrently. No matter it is a single connection or load balancing, only one can communicate with the client. I used the same configuration created by XRAY on the server side and used the SINGBOX client. There is no problem, which proves that there is no problem with the client. The new version of the server has a BUG. Please fix it.
Do you know which service version is normal?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
wget -O sing-box-1.10.7-linux-amd64.tar.gz https://github.com/SagerNet/sing-box/releases/download/v1.10.7/sing-box-1.10.7-linux-amd64.tar.gz,我刚才安回啦这个版本就正常啦,我用的DEBIAN系列就可以的,麻烦修复下最新版本的BUG,我都是安的稳定版本
Mr Yang @.***
------------------ 原始邮件 ------------------ 发件人: "SagerNet/sing-box" @.>; 发送时间: 2025年2月13日(星期四) 下午5:55 @.>; 抄送: "Mr @.@.>; 主题: Re: [SagerNet/sing-box] 客户端使用vmess WebSocket时,日志频繁打印错误:ws closed: 1000 (Issue #2580)
The server is now in a new version. The server creates multiple VLESS+TLS+reality, which cannot be connected concurrently. No matter it is a single connection or load balancing, only one can communicate with the client. I used the same configuration created by XRAY on the server side and used the SINGBOX client. There is no problem, which proves that there is no problem with the client. The new version of the server has a BUG. Please fix it.
Do you know which service version is normal?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***> freevern left a comment (SagerNet/sing-box#2580)
The server is now in a new version. The server creates multiple VLESS+TLS+reality, which cannot be connected concurrently. No matter it is a single connection or load balancing, only one can communicate with the client. I used the same configuration created by XRAY on the server side and used the SINGBOX client. There is no problem, which proves that there is no problem with the client. The new version of the server has a BUG. Please fix it.
Do you know which service version is normal?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
客户端没有问题,就只是新版的服务器端有BUG,wget -O sing-box-1.10.7-linux-amd64.tar.gz https://github.com/SagerNet/sing-box/releases/download/v1.10.7/sing-box-1.10.7-linux-amd64.tar.gz ,这个版本是正常的,我已测试过啦
Mr Yang @.***
------------------ 原始邮件 ------------------ 发件人: "SagerNet/sing-box" @.>; 发送时间: 2025年2月13日(星期四) 下午5:55 @.>; 抄送: "Mr @.@.>; 主题: Re: [SagerNet/sing-box] 客户端使用vmess WebSocket时,日志频繁打印错误:ws closed: 1000 (Issue #2580)
The server is now in a new version. The server creates multiple VLESS+TLS+reality, which cannot be connected concurrently. No matter it is a single connection or load balancing, only one can communicate with the client. I used the same configuration created by XRAY on the server side and used the SINGBOX client. There is no problem, which proves that there is no problem with the client. The new version of the server has a BUG. Please fix it.
Do you know which service version is normal?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***> freevern left a comment (SagerNet/sing-box#2580)
The server is now in a new version. The server creates multiple VLESS+TLS+reality, which cannot be connected concurrently. No matter it is a single connection or load balancing, only one can communicate with the client. I used the same configuration created by XRAY on the server side and used the SINGBOX client. There is no problem, which proves that there is no problem with the client. The new version of the server has a BUG. Please fix it.
Do you know which service version is normal?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
服务端更换为v1.10.7之后,客户端没有这个错误打印了,但是变成了服务端有这个错误打印了,由客户端的download变成了服务端的upload: ERROR[0957] [558168194 1m26s] inbound/vless[1]: process connection from 58.62.0.155:51330: upload: ws closed: 1000 ERROR[0957] [1023415445 1m22s] inbound/vless[1]: process connection from 58.62.0.155:51404: upload: ws closed: 1000 ERROR[0957] [1522614449 1m22s] inbound/vless[1]: process connection from 58.62.0.155:51400: upload: ws closed: 1000 ERROR[0957] [2830030703 1m25s] inbound/vless[1]: process connection from 58.62.0.155:51362: upload: ws closed: 1000 ERROR[0957] [1770762119 1m29s] inbound/vless[1]: process connection from 58.62.0.155:50586: upload: ws closed: 1000 ERROR[0957] [218029269 612ms] inbound/vless[1]: process connection from 58.62.0.155:50398: upload: ws closed: 1000 ERROR[0957] [1053569587 15.18s] inbound/vless[1]: process connection from 58.62.0.155:51094: upload: ws closed: 1000 ERROR[0957] [323005594 1m25s] inbound/vless[1]: process connection from 58.62.0.155:51364: upload: ws closed: 1000 ERROR[0957] [4132731645 15.81s] inbound/vless[1]: process connection from 58.62.0.155:51066: upload: ws closed: 1000 ERROR[0957] [439440752 1m27s] inbound/vless[1]: process connection from 58.62.0.155:51314: upload: ws closed: 1000 ERROR[0957] [1299533902 1m26s] inbound/vless[1]: process connection from 58.62.0.155:51336: upload: ws closed: 1000
sing-box version 1.12.0-beta.3 +1