mi: bound every query with a timeout and add context cancellation (#2738)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2026-10-16 09:11:40 +02:00
committed by GitHub
parent 126b655afa
commit 54cf194039
9 changed files with 722 additions and 60 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ func (application *Application) NewSession(options *DestinationOptions) (*Sessio
return nil, fmt.Errorf("failed to create default operation options: %w", err)
}
if err = defaultOperationOptions.SetTimeout(5 * time.Second); err != nil {
if err = defaultOperationOptions.SetTimeout(DefaultQueryTimeout); err != nil {
_ = defaultOperationOptions.Delete()
_ = session.Close()