cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent connection timeout in long running Gateway requests?

Former Member
0 Kudos

Hello,

I have a UI5 application which calls a Gateway function import that takes a veeery long time to compute something. Therefore the client browser receives a connection timeout from the SAP NetWeaver backend while the computation is still running.

What is the best approach to prevent this timeout?

  1. The timeout settings of the server should not be changed!
  2. It seems the computation can neither be chopped into smaller parts nor is it an option to strap a HANA under that server
  3. Is there some kind of WebSocket possibility?

Best regards,

Björn

P.S.: The system is a NetWeaver 7.40 SP8

Accepted Solutions (0)

Answers (2)

Answers (2)

kammaje_cis
Active Contributor
0 Kudos

Websocket is definitely an option.

Another option

If it is really a time consuming job, keeping your conditions in mind,

I think you can use a batch job in backend to do that computing and store in a custom table. You can poll every 30 seconds from your UI5 app to check if the result is available/ready.

yevgen_trukhin
Advisor
Advisor
0 Kudos

Bjoern, how long is very long? All browsers have http client timeout limitations so you wont be able to avoid that.

http://stackoverflow.com/questions/5798707/browser-timeouts

It seems you might need to redesign your application if you want to avoid the timeout. You can go with websocket -> then it wont be anymore REST/ODATA/GW approach.

Yevgen