mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-21 23:32:39 +02:00
better connection handling
This commit is contained in:
@@ -509,7 +509,7 @@ async fn create_stream_response_details(
|
||||
}
|
||||
|
||||
// if we have no stream, we should release the provider
|
||||
if stream.is_none() {
|
||||
let provider_handle = if stream.is_none() {
|
||||
let provider_handle = streaming_strategy.provider_handle.take();
|
||||
app_state.connection_manager.release_provider_handle(provider_handle).await;
|
||||
error!("Cant open stream {}", sanitize_sensitive_info(&request_url));
|
||||
@@ -524,7 +524,7 @@ async fn create_stream_response_details(
|
||||
provider_name: guard_provider_name.clone(),
|
||||
grace_period_millis,
|
||||
reconnect_flag,
|
||||
provider_handle: streaming_strategy.provider_handle,
|
||||
provider_handle,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user