fix(drivers/smb): close smb sessions during transfers #2579
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.47) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 283 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.338
Real PR Conversation Timeline
1 comments
"Review active on #2579"
general
weight: 0.35
elysia-best
Summary / 摘要
Fix SMB session lifecycle handling during long transfers.
*smb2.Sessionin the SMB driver so cleanup can callSession.Logoff(), not onlyShare.Umount().Linkstream is closed.Mountfails afterDialsucceeds.Related repository PRs:
Related Issues / 关联 Issue
Fixes #2578
Related to #2228
Testing / 测试
gofmt drivers/smb/driver.go drivers/smb/util.goGOCACHE=/private/tmp/openlist-go-build-cache GOMODCACHE=/private/tmp/openlist-go-mod-cache GOPROXY=https://goproxy.cn,direct go test ./drivers/smbgo test ./...go test ./...was attempted, but unrelated existing packages fail:non-constant format stringdiagnostics;pkg/aria2/rpcexpects a local aria2 RPC server atlocalhost:6800.The SMB package itself compiles successfully.
Checklist / 检查清单
gofmt.AI Disclosure / AI 使用声明
Tools used / 使用工具:
Usage scope / 使用范围:
Co-Authored-Byattribution.