Implement network switching improvements for HMAC file server
- Added support for chunked and resumable uploads to enhance resilience against network interruptions. - Introduced a new upload session management system to track progress and handle retries. - Enhanced connection management with improved timeout settings for mobile networks. - Implemented network change detection and handling to pause and resume uploads seamlessly. - Developed client-side retry logic for uploads to improve reliability. - Updated configuration options to enable new features and set recommended defaults for timeouts and chunk sizes. - Created integration layer to add new features without modifying existing core functionality. - Established a network resilience manager to monitor network changes and manage active uploads.
This commit is contained in:
@ -602,6 +602,12 @@ func setupRouter() *http.ServeMux {
|
||||
})
|
||||
|
||||
log.Info("HTTP router configured successfully with full protocol support (v, v2, token, v3)")
|
||||
|
||||
// Enhance router with network resilience features (non-intrusive)
|
||||
if conf.Uploads.ChunkedUploadsEnabled {
|
||||
EnhanceExistingRouter(mux)
|
||||
}
|
||||
|
||||
return mux
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user