Add enhanced configuration templates for adaptive I/O features

- Introduced a comprehensive configuration template (config-adaptive.toml) for adaptive I/O, enabling improved upload/download dual stack with various performance optimizations, security settings, and network resilience features.
- Created a test configuration template (test-config.toml) mirroring the adaptive configuration for testing purposes.
- Added a simple test configuration (test-simple-config.toml) for basic adaptive features testing with essential parameters.
- Included an empty Jupyter notebook (xep0363_analysis.ipynb) for future analysis related to XEP-0363.
This commit is contained in:
2025-08-23 12:07:31 +00:00
parent 7d5fcd07a1
commit 3887feb12c
24 changed files with 3907 additions and 249 deletions

View File

@ -288,6 +288,17 @@ func (m *NetworkResilienceManager) UnregisterUpload(sessionID string) {
}
}
// GetUploadContext retrieves the upload context for a given session ID
func (m *NetworkResilienceManager) GetUploadContext(sessionID string) *UploadContext {
m.mutex.RLock()
defer m.mutex.RUnlock()
if ctx, exists := m.activeUploads[sessionID]; exists {
return ctx
}
return nil
}
// PauseAllUploads pauses all active uploads
func (m *NetworkResilienceManager) PauseAllUploads() {
m.mutex.Lock()