Skip to content

Commit

Permalink
web: Set sessions' timeout to 30 seconds
Browse files Browse the repository at this point in the history
To prevent endless loading.
  • Loading branch information
oscfdezdz committed Jan 17, 2025
1 parent ea9fe4f commit 3aa1113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/web/exm-image-resolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,6 @@ exm_image_resolver_class_init (ExmImageResolverClass *klass)
static void
exm_image_resolver_init (ExmImageResolver *self)
{
self->session = soup_session_new ();
self->session = soup_session_new_with_options ("timeout", 30, NULL);
g_mutex_init (&self->mutex);
}
2 changes: 1 addition & 1 deletion src/web/exm-request-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,5 @@ static void
exm_request_handler_init (ExmRequestHandler *self)
{
ExmRequestHandlerPrivate *priv = exm_request_handler_get_instance_private (self);
priv->session = soup_session_new ();
priv->session = soup_session_new_with_options ("timeout", 30, NULL);
}

0 comments on commit 3aa1113

Please sign in to comment.