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

[转发] PCL 多线程疑似会高频主动断开连接 #4981

Closed
1 task done
tangge233 opened this issue Oct 19, 2024 · 8 comments
Closed
1 task done

[转发] PCL 多线程疑似会高频主动断开连接 #4981

tangge233 opened this issue Oct 19, 2024 · 8 comments
Labels
· Bug 完成 已被处理,将在下次更新之后生效

Comments

@tangge233
Copy link
Contributor

tangge233 commented Oct 19, 2024

检查项

描述

@[PCL] 龙腾猫跃 PCL2 会主动断开下载 Mod 的连接?
具体是不到100ms就断开...显然不是超时之类的,我这CDN看到的是499
a4352aa238529f6d828eee5be971bc49_720
ddcf248ead3c16ed17527e1d50ee7711
ee3d5828a830eb74a91a98f8ef3219ab
基本上每秒都能产生几个这种情况的

image

GET /data/sk9knFPE/versions/d6aWp117/rhino-fabric-2001.2.2-build.18.jar HTTP/1.1

PCL2/2.8.8.50 Mozilla/5.0 AppleWebKit/537.36 Chrome/63.0.3239.132 Safari/537.36

该接口在正常工作

image

重现步骤

下载?

日志与附件

ask z0z0r4

@tangge233 tangge233 added · Bug 新提交 需要社区初步确认其有效的新提交 labels Oct 19, 2024
@z0z0r4
Copy link

z0z0r4 commented Oct 19, 2024

没有日志可以提供…但我CDN后台看的每秒都有这种 499,应该不难复现(x

起码可以排除是我这边的问题…

当然也不确定是不是用户自己取消的,只是出现的频率太高,姑且在此插眼记录下这个问题

@tangge233 tangge233 changed the title [转发] PCL 多线程疑似会主动断开连接 [转发] PCL 多线程疑似会高频主动断开连接 Oct 19, 2024
@SALTWOOD
Copy link
Contributor

499……是客户端断开连接还是服务端断的

@tianxiu2b2t
Copy link

499一般是CDN引起的

@z0z0r4
Copy link

z0z0r4 commented Oct 19, 2024

499一般是CDN引起的

499 是 服务器返回http头之前,客户端就提前关闭了http连接。

/*
* HTTP does notdefine the code for the case when a client closed
* the connectionwhile we are processing its request so we introduce
* own code to logsuch situation when a client has closed the connection
* before we even tryto send the HTTP header to it
*/
#define NGX_HTTP_CLIENT_CLOSED_REQUEST 499

ngx_string(ngx_http_error_495_page), /* 495, https certificate error */
ngx_string(ngx_http_error_496_page), /* 496, https no certificate */
ngx_string(ngx_http_error_497_page), /* 497, http to https */
ngx_string(ngx_http_error_404_page), /* 498, canceled */
ngx_null_string,                     /* 499, client has closed connection */

@SALTWOOD
Copy link
Contributor

也就是说是客户端发了请求数据没等回复就关了?

@JingHai-Lingyun JingHai-Lingyun added 等待确认 已经过社区确认,等待开发者确认 and removed 新提交 需要社区初步确认其有效的新提交 labels Oct 20, 2024
@JingHai-Lingyun
Copy link
Collaborator

挂个待确认等龙猫回复看看

@LTCatt
Copy link
Member

LTCatt commented Oct 20, 2024

还是需要一个能体现行为的日志……这个我都不知道从哪查起……

@LTCatt
Copy link
Member

LTCatt commented Oct 20, 2024

怪了,MCIM 不在多线程黑名单里,我记得我加了的啊……
现在加进多线程黑名单了,会强制进行单线程下载,看看下个版本会不会好

@LTCatt LTCatt closed this as completed Oct 20, 2024
@HexDragon-Bot HexDragon-Bot added 完成 已被处理,将在下次更新之后生效 and removed 等待确认 已经过社区确认,等待开发者确认 labels Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
· Bug 完成 已被处理,将在下次更新之后生效
Projects
None yet
Development

No branches or pull requests

7 participants