mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 16:10:43 +00:00
fix: remove CloseFrame delay (#6106)
This commit is contained in:
@@ -347,17 +347,6 @@ async fn cleanup_and_close_session(req_id: &str, close_reason: Option<CloseReaso
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "enterprise")]
|
||||
{
|
||||
// sleep for the interval duration in milliseconds to avoid race condition
|
||||
// between the close frame (control frame) and the data frame
|
||||
let cfg = get_config();
|
||||
let interval = cfg.websocket.close_frame_delay;
|
||||
if interval > 0 {
|
||||
tokio::time::sleep(std::time::Duration::from_millis(interval)).await;
|
||||
}
|
||||
}
|
||||
|
||||
// Attempt to close the session
|
||||
if let Err(e) = session.close(close_reason).await {
|
||||
log::error!(
|
||||
|
||||
Reference in New Issue
Block a user