Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载断流能重现 #1082

Closed
beyondkmp opened this issue May 1, 2018 · 1 comment
Closed

下载断流能重现 #1082

beyondkmp opened this issue May 1, 2018 · 1 comment

Comments

@beyondkmp
Copy link

beyondkmp commented May 1, 2018

  1. 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
    3.21

  2. 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。
    下载

  3. 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)
    下载到剩下10M左右的时候就断开了

  4. 你期待看到的正确表现是怎样的?
    全部下载完成

  5. 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。

    服务器端配置:

 {
    "inbound": {
        "port": 8080,
        "protocol": "vmess",
        "settings": {
            "clients": [
                {
                    "id": "uuid",
                    "alterId": 128
                }
            ]
        }
    },
    "outbound": {
        "protocol": "freedom",
        "settings": {
        }
    }
}
客户端配置:
    // 在这里附上客户端配置
{
    "inbound": {
      "port": 1182,
      "listen": "0.0.0.0",
      "protocol": "http",
      "settings": {
      }
    },
    "outbound": {
        "protocol": "vmess",
        "settings": {
            "vnext": [
                {
                    "address": "1.2.3.4",
                    "port": 8080,
                    "users": [
                        {
                            "id": "uuid",
                            "alterId": 128,
                            "security": "auto"
                        }
                    ]
                }
            ]
        }
    }
}
  1. 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

    服务器端错误日志:

    // 在这里附上服务器端日志
2018/04/28 17:04:24 [Info] [1634727360] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|Freedom: connection ends > context canceled
2018/04/28 17:04:37 [Info] [1634727360] App|Proxyman|Inbound: connection ends > Proxy|VMess|Inbound: connection ends > io: read/write on closed pipe

我设置V2RAY_RAY_BUFFER_SIZE=1时,测试的时候基本上就不会断流。这个如果在本地测试一定要限制客户端速度,要不一下子就下载完了,不能重现。初步判断可能是缓存了10M,然后freedom和源断开后downlinkOnly内,10M的缓存量还没有发送完,就直接全部断开了,用sock代理,http代理都能重现这个问题,和代理应该没有关系。我把downlinkOnly的时间设置长一些,也是不会断流,不过下载最后一直要等到超时才断开。

@DarienRaymond
Copy link
Contributor

你的观测是对的,确认是一个bug。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants