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:
@ -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()
|
||||
|
Reference in New Issue
Block a user