Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

CANNOT fetch file( bigger than 256k) in browser. #1667

Closed
@LiMoMoMo

Description

@LiMoMoMo
  • Version: 0.33.0-rc.3
  • Platform: chrome 69.0.3497.100 32bit
  • Subsystem:

Type: Question

Severity: Medium

Description:

use the Exchange files between the browser, upload some files to one page's worksapce, i can fetch the fie which is smaller than 256K by enter the CID in other page, BUT can not fetch the file bigger than 256K.

Steps to reproduce the error:

npm install --global libp2p-webrtc-star
star-signal --port=9090 --host=127.0.0.1
    const options = {
      EXPERIMENTAL: {
        pubsub: true
      },
      repo: repoPath,
      config: {
        Addresses: {
          Swarm: ['/dns4/192.168.1.107/tcp/8010/wss/p2p-webrtc-star'],     
          Bootstrap: []
        }
      }
    }
  • disable the pubsub
function appendFile (name, hash, size, data) {
    ...
  // publishHash(hash)
}

  • set Nginx
wss:8010   -----> ws:9090
https:8000 -----> http:12345
  • start http-server in the example
  • open two page https://192.168.1.107:8000
    the pages' Addresses can appear in other's CONNECTED PEERS area each other.
    Drag some files to one workspace, then fetch the file by enter the cid in other page.
    some files that smaller than 256K can be fetched, but the file that is big(500k or bigger) cannot be fetched.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: Good to have, but can wait until someone steps upexp/expertHaving worked on the specific codebase is importantkind/bugA bug in existing code (including security flaws)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions