Failutre in bufio.CopyOnce
Welcome
- [X] Yes, I'm using the latest major release. Only such installations are supported.
- [X] Yes, I'm using the latest Golang release. Only such installations are supported.
- [X] Yes, I've searched similar issues on GitHub and didn't find any.
- [X] Yes, I've included all information below (version, config, log, etc).
Description of the problem
sing-box as navie server.
Client access to the website occasionally times out. The server is on localhost.
Version of sing-box
1.0-rc1
Server and client configuration file
{
"inbounds": [
{
"type": "naive",
"listen": "::",
"listen_port": 8443,
"network": "tcp",
"users": [
{
"username": "",
"password": ""
}
],
"tls": {
"enabled": true,
"certificate_path": "",
"key_path": ""
}
}
],
"outbounds": [
{
"type": "direct",
"domain_strategy": "ipv4_only"
}
]
}
Server and client log file
Server
INFO[0004] [3038983691] inbound/naive[0]: inbound connection from 172.20.0.1:50424
INFO[0004] [3038983691] inbound/naive[0]: inbound connection to www.google.com:443
INFO[0004] [3038983691] outbound/direct[0]: outbound connection to www.google.com:443
DEBUG[0004] [3038983691] dns: lookup domain www.google.com
INFO[0004] [3038983691] dns: lookup succeed for www.google.com: 142.251.42.196
INFO[0005] [1496234055] inbound/naive[0]: inbound connection from 172.20.0.1:50424
INFO[0005] [1496234055] inbound/naive[0]: inbound connection to www.gstatic.com:443
INFO[0005] [1496234055] outbound/direct[0]: outbound connection to www.gstatic.com:443
DEBUG[0005] [1496234055] dns: lookup domain www.gstatic.com
INFO[0005] [1496234055] dns: lookup succeed for www.gstatic.com: 172.217.175.3
INFO[0005] [3376297454] inbound/naive[0]: inbound connection from 172.20.0.1:50424
INFO[0005] [3376297454] inbound/naive[0]: inbound connection to www.gstatic.com:443
INFO[0005] [3376297454] outbound/direct[0]: outbound connection to www.gstatic.com:443
DEBUG[0005] [3376297454] dns: lookup domain www.gstatic.com
INFO[0005] [3376297454] dns: lookup succeed for www.gstatic.com: 172.217.175.3
INFO[0005] [875479440] inbound/naive[0]: inbound connection from 172.20.0.1:50424
INFO[0005] [875479440] inbound/naive[0]: inbound connection to content-autofill.googleapis.com:443
INFO[0005] [875479440] outbound/direct[0]: outbound connection to content-autofill.googleapis.com:443
DEBUG[0005] [875479440] dns: lookup domain content-autofill.googleapis.com
INFO[0005] [875479440] dns: lookup succeed for content-autofill.googleapis.com: 142.251.42.170
INFO[0005] [3893485358] inbound/naive[0]: inbound connection from 172.20.0.1:50424
INFO[0005] [3893485358] inbound/naive[0]: inbound connection to apis.google.com:443
INFO[0005] [3893485358] outbound/direct[0]: outbound connection to apis.google.com:443
DEBUG[0005] [3893485358] dns: lookup domain apis.google.com
INFO[0005] [3893485358] dns: lookup succeed for apis.google.com: 142.251.42.142
DEBUG[0007] [3376297454] inbound/naive[0]: connection closed: process connection from 172.20.0.1:50424: upload: EOF | download: read tcp 172.20.0.2:33446->172.217.175.3:443: use of closed network connection | upstream: context canceled
Try 4098a18072a3c0ca7e9863c26676b3749ebd5646
still the same
Is there a different place for the logs?
No different.
You can setup a server and client on localhost. Visit any popular website. Then part of the page keeps loading until it times out.
This is probably caused by ReadFromN instead of padding. The problem seems to go away after commenting out ReadFrom.
Try 3b48fa455e26f6c46f93f1788e5bf2601fde3f41
3b48fa455e26f6c46f93f1788e5bf2601fde3f41 is OK
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days