Increase Server Response Timeout

I’m using Jmix 2.4.4.
For long-running tasks, I’ve been using BackgroundTask. However, some data query operations occasionally take a bit longer than usual and result in a “Connection lost” notification.
I was wondering if there’s a way to configure or increase the server-side response timeout.?

Hello @lewiyil914,

Take a look at the following settings:
https://docs.jmix.io/jmix/flow-ui/ui-properties.html#background-tasks

You can also send a code example and your log.

Regards,
Nikita

Dear @shchienko
I think there might have been a slight misunderstanding, so I’d like to clarify a bit. When using BackgroundTask, everything works smoothly — I’m not experiencing any issues there.

The problem only happens with operations where I’m not using BackgroundTask. In those cases, some queries take a little longer and trigger a “Connection lost” notification.

Would it be possible to increase the server response timeout for such cases?

If you are using executable JAR, you can play with the server.tomcat.connection-timeout app property.
But the default value is already quite long: 60 sec. So I’m not sure it’s relevant to your situation.

Could you provide more details (real delays, exception stack trace, etc)?