Skip to content

Upload start failing on internets with 1mbps upload ( Like ADSL ) with XHTTP packet-up over CDN or/and DIRECT. #4100

@deepsm0ke

Description

@deepsm0ke

Integrity requirements

  • 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.
  • I provided the complete config and logs, rather than just providing the truncated parts based on my own judgment.
  • I searched issues and did not find any similar issues.
  • The problem can be successfully reproduced in the latest Release

Description

The problem that has been and still is that the upload speed ( Download speed is ok ) and stability on ADSL is not good at all (except for Annex M mode, which has relatively good adsl's upload about 3mbps). On the other hand, other transports like Websocket or httpUpgrade Over CDN ( Tested on CF ) have good upload on ADSL (It uploads slowly, but the important thing is that it starts uploading, whereas with splithttp it doesn't even start uploading.), but in XHTTP(splitHTTP), we may have to wait (even in h3 alpn mode or even in h2 mode!) for nearly 2 minutes (Maybe or maybe not) until only 128kb of that file is uploaded!.

Reproduction Method

I really have no idea how to fix this problem and I don't know how to coding, but I was eager to help.

Client config


"inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 10808,
      "protocol": "socks",
      "settings": {
        "udp": true,
        "auth": "noauth"
      },
      "sniffing": {
        "destOverride": [
          "http",
          "tls"
        ],
        "enabled": true,
        "routeOnly": true
      },
      "tag": "socks"
    },
    {
      "listen": "127.0.0.1",
      "port": 10809,
      "protocol": "http",
      "tag": "http"
    }
  ],
  "outbounds": [
    {
      "tag": "proxy",
      "protocol": "vless",
      "settings": {
        "vnext": [
          {
            "address": "CF-IP",
            "port": 443,
            "users": [
              {
                "id": "xxxxxx-xxxx-xxxx-xxxx-xxxxxx",
                "security": "auto",
                "encryption": "none",
                "email": "xxxxxx",
                "alterId": 0,
                "flow": null
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "splithttp",
        "security": "tls",
        "tlsSettings": {
          "serverName": "sub.mycfdomain.com",
          "allowInsecure": false,
          "fingerprint": "chrome",
          "alpn": [
            "h3"
          ],
          "show": false
        },
        "splithttpSettings": {
          "mode": "auto",
          "xmux": {
            "maxConcurrency": 0,
            "maxConnections": 0,
            "cMaxReuseTimes": 0,
            "cMaxLifetimeMs": 60000
          },
          "headers": {
            "Pragma": "no-cache"
          },
          "path": "/",
          "host": "sub.mycfdomain.com",
          "scMaxEachPostBytes": 1000000,
          "scMaxConcurrentPosts": 100,
          "scMinPostsIntervalMs": 30,
          "xPaddingBytes": "100-200"
        },
        "sockopt": {
          "dialerProxy": "dialer"
        }
      }
    },

Server config


{
  "tag": "VLESS + SPLITHTTP + TLS",
  "listen": "0.0.0.0",
  "port": 443,
  "protocol": "vless",
  "settings": {
      "clients": [],
      "decryption": "none"
    },
  "streamSettings": {
    "network": "splithttp",
    "splithttpSettings": {
      "scMaxEachPostBytes": 1000000,
      "scMaxConcurrentPosts": 100,
      "path": "/",
      "xPaddingBytes": "100-200",
      "mode": "auto"
 },
    "security": "tls",
    "tlsSettings": {
      "serverName": "sub.mycfdomain.com",
      "certificates": [
        {
          "ocspStapling": 3600,
          "certificateFile": "/root/cert/cert.crt",
          "keyFile": "/root/cert/private.key"
        }
      ],
      "minVersion": "1.3"
    }
  },
  "sniffing": {
    "enabled": true,
    "destOverride": ["http", "tls"]
  }
}

Client log

No Errors but, when using h3 mode v2rayN show :
connection doesn't allow setting of send buffer size. Not a *net.UDPConn?. See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.

Server log

No Errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions