#Any way to set connection timeout for the new SDK?
5 messages · Page 1 of 1 (latest)
Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:
- Adding an explanation of exactly what you're trying to achieve.
- Adding any and all related code or previous attempts.
- Describing the exact issue or error you are facing.
- Posting any screenshots if applicable.
- Reading through https://stackoverflow.com/help/how-to-ask.
When you're done with this thread, please close it. Thanks! ✨
(If you have a support agreement and need help, please contact the core team via email.)
@wheat trench I'm not mistaken since the new SDK is modular, you would set this via the rest or graphql env setting.
https://docs.directus.io/self-hosted/config-options.html#rest
WEBSOCKETS_REST_AUTH_TIMEOUT
or
WEBSOCKETS_GRAPHQL_AUTH_TIMEOUT
These env vars are for the server, I believe. Also, their description indicates that it's not for the connection timeout:
The amount of time in seconds to wait before closing an unauthenticated connection.
In other words, connection is already established, but not authenticated.
Oh I see, you mean timing out connections of authed users. I thought typically once the query is over, the connection cuts itself via rest until another request is made. But you are wanting something incase of a hang or long query or something.. Not sure if thats a thing yet.