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

加载一些比较大的文件容易断开连接 #87

Closed
ghost opened this issue Jan 3, 2023 · 6 comments
Closed

加载一些比较大的文件容易断开连接 #87

ghost opened this issue Jan 3, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jan 3, 2023

比如下载一个大约10m的文件,大概下载到3m左右断开.
日志如下:

[objects.githubusercontent.com:443] socket errored: ErrorEvent {
  bubbles: false,
  cancelable: false,
  composed: false,
  currentTarget: WebSocket {
  url: undefined,
  readyState: 3,
  extensions: undefined,
  protocol: null,
  binaryType: undefined,
  bufferedAmount: NaN
},
  defaultPrevented: false,
  eventPhase: 2,
  srcElement: null,
  target: WebSocket {
  url: undefined,
  readyState: 3,
  extensions: undefined,
  protocol: null,
  binaryType: undefined,
  bufferedAmount: NaN
},
  returnValue: true,
  timeStamp: 1672751750328,
  type: "error",
  message: "WebSocket protocol error: Connection reset without closing handshake",
  filename: "",
  lineno: 0,
  colno: 0,
  error: undefined
}

@zizifn
Copy link
Owner

zizifn commented Jan 3, 2023

基本上所有的serverless 平台都有限制,deno deploy 免费是 Up to 10ms CPU time。。有可能超时了,但是下载是io操作应该不会太使用CPU时间,不过我会留意下,看看是否是code bug。

@zizifn
Copy link
Owner

zizifn commented Jan 7, 2023

@sojamesss 请同步最新版试试吧。多点几次重试应该可以。这个问题我暂时没有解决,由于网络问题,导致本地调试很困难,不过我会继续研究下的。

@ghost
Copy link
Author

ghost commented Jan 7, 2023

能不能分段读取,减少内存峰值呢?

@zizifn
Copy link
Owner

zizifn commented Jan 7, 2023

能不能分段读取,减少内存峰值呢?

我需要造个好网络,测试下是 code 问题还是 deno deploy CPU 限制。

zizifn added a commit that referenced this issue Jan 8, 2023
@zizifn
Copy link
Owner

zizifn commented Jan 8, 2023

能不能分段读取,减少内存峰值呢?

应该fix了。你同步代码试试吧。

@zizifn zizifn added the bug Something isn't working label Jan 8, 2023
@ghost
Copy link
Author

ghost commented Jan 9, 2023

能不能分段读取,减少内存峰值呢?

应该fix了。你同步代码试试吧。

😀 ok啦,辛苦

@ghost ghost closed this as completed Jan 9, 2023
zizifn added a commit that referenced this issue Jun 5, 2023
zizifn added a commit that referenced this issue Jun 5, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant