update graphql-ws connection init timeout to 3 secs (#1164)

V3_GIT_ORIGIN_REV_ID: 5143e6c7939ff4c49c4fae2ff8c3d3d757b4b60f
This commit is contained in:
Rakesh Emmadi 2024-09-27 16:26:06 +05:30 committed by hasura-bot
parent a6719bee76
commit a2585dcf0a

View File

@ -11,7 +11,7 @@ use crate::websocket::types as ws;
pub static GRAPHQL_WS_PROTOCOL: &str = "graphql-transport-ws";
/// Timeout for the connection initialization process.
pub static CONNECTION_INIT_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(10);
pub static CONNECTION_INIT_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(3);
/// Handles incoming client messages and dispatches them to appropriate handlers.
pub async fn handle_client_message(connection: ws::Connection, message: ClientMessage) {