-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
远程缓存会卡死 #2512
Comments
C:\Users\build>xmake service -vD @programdir\modules\private\service\remote_cache\server.lua:88: session has not been connected! <remote_cache_server>: <socket: tcp4/872.0>: <session 73885b64>: send ok @programdir\modules\private\service\remote_cache\server.lua:88: session has not been connected! <remote_cache_server>: <socket: tcp4/908.0>: <session 73885b64>: send ok @programdir\modules\private\service\remote_cache\server.lua:88: session has not been connected! <remote_cache_server>: <socket: tcp4/912.0>: <session 73885b64>: send ok |
这两天没时间细看,等周末看下 |
当前 remote cache client 传给 server 的 73885b64 变了,导致 server 端找不到之前已有的 session 。。 要么你删了 .xmake 然后 xmake service --connect --ccache --distcc 重连下,client 会生成新的 session id 给 server ,两端刷下再试试。。如果还是不行,保留 两端完整 -vD logs 都发下 |
几天没跑了,我没有删除.xmake,现在只是重新connect,没问题了。我觉得是不是加一个超时好一点?出问题了自动不用缓存 |
超时我初步支持了,可以切到 $ cat ~/.xmake/service/client.conf
{
send_timeout = 5000,
recv_timeout = 5000,
connect_timeout = 5000,
distcc_build = {
send_timeout = 5000,
recv_timeout = 5000,
connect_timeout = 5000,
},
remote_cache = {
send_timeout = 5000,
recv_timeout = 5000,
connect_timeout = 5000,
}
} 默认配置,timeout 都是 -1,你可以可选配置上对应的 send/recv/connect 超时,也可以在 distcc_build/remote_cache 的配置块里面,单独对某个 client 服务配置上。 |
我merge了 后续有问题 先关了 再开 |
Xmake 版本
2.6.8
操作系统版本和架构
Windows 11
描述问题
服务器开启了远程缓存,客户端找到了缓存,但是没法使用,一直显示pull cache,超过1个多小时都不会超时。服务器有报错:
期待的结果
能正常获取缓存,或者快速超时,转本地缓存
工程配置
No response
附加信息和错误日志
No response
The text was updated successfully, but these errors were encountered: