HTTP 504 - Gatway Timeout

The public knowledge pool and discussion forum of the OWS community. Do not post confidential information here!
niedenzu
Posts: 2
Joined: 29 Jul 2020, 13:46

HTTP 504 - Gatway Timeout

Post by niedenzu »

Hi,

during our test I ran into problems with timeouts.
OWS uses HttpUrlConnection to download the jars into the cache.
How can I increase the clientConnectiontTimeout und the defaultReadTimeout.

I'm looking forward for your reply.
Regards Martin

-Dsun.net.client.defaultConnectTimeout=5000
-Dsun.net.client.defaultReadTimeout=5000

Janak Mulani
Posts: 89
Joined: 24 Mar 2020, 13:37

Re: HTTP 504 - Gatway Timeout

Post by Janak Mulani »

Hi

OWS sets ConnectTimeout=5000 and keeps ReadTimeout=0 (infinite).

What problem did you face with timeouts? What was your usecase?

I will come back to you on how to set it.

Hendrik Ebbers
Posts: 21
Joined: 02 Apr 2020, 10:11

Re: HTTP 504 - Gatway Timeout

Post by Hendrik Ebbers »

Hi niedenzu,

it would be possible to define that arguments in OpenWebStart. At the moment we do not have the resources to work on this as part of the free OpenWebStart community work. If this is an important issue for we can discuss how this can be solved. There are several options:
- We help you to fix it on your own and provide a PR for OpenWebStart / IcedTeaWeb
- We offer payed work on OpenWebStart (see https://openwebstart.com/support/)
- We offer commercial support for OpenWebStart (see https://openwebstart.com/support/)

If you are interested in this options I can schedule a Zoom meeting the next days.

Thanks,

Hendrik

niedenzu
Posts: 2
Joined: 29 Jul 2020, 13:46

Re: HTTP 504 - Gatway Timeout

Post by niedenzu »

Thanx guys for the answers .

But - Isn't there a way to use vmoptions-file the?
C:\Program Files\OpenWebStart\javaws.vmoptions

I added
-Dsun.net.client.defaultConnectTimeout=5000
-Dsun.net.client.defaultReadTimeout=5000
but that did not realy help.

Do you have any suggestions?

Best Regards
martin

Stephan Classen
Posts: 65
Joined: 27 Mar 2020, 09:55

Re: HTTP 504 - Gatway Timeout

Post by Stephan Classen »

You could try to add the timeouts to the JNLP file as properties.
Not sure if this will work, as some of the network related properties are cached by the JVM uppon opening the first connection.

Janak Mulani
Posts: 89
Joined: 24 Mar 2020, 13:37

Re: HTTP 504 - Gatway Timeout

Post by Janak Mulani »

>
But - Isn't there a way to use vmoptions-file the?
C:\Program Files\OpenWebStart\javaws.vmoptions
>

This won't work. These VM options are relevant only for OWS phase one : download of jnlp file and not for jar files. Even then OWS seems to override and set the ConnectTimeout to 5000

Hendrik Ebbers
Posts: 21
Joined: 02 Apr 2020, 10:11

Re: HTTP 504 - Gatway Timeout

Post by Hendrik Ebbers »

Hi niedenzu,

I had an internal chat with Stephan Classen. Since this issue is currently not part of our road map we can offer you a quick fix + documentation on how such properties can be defined (as part of the open OWS documentation) as a really small consulting contract (1 day). By doing so the fix would be in the next version of OWS that will be released in August. This would help to keep us working on OpenWebStart and IcedTeaWeb as Open Source projects :) If this would be an option for you I'm more than happy to send you a quote by mail. In such case please ping us at openwebstart@karakun.com

If this is not an option for you we will keep this issue on our list of Open Source issues that might be fixed in the future. Here we can not give an guaranty when this will happen. Next to this it is always possible to provide a Pull Request.

Thanks,
Hendrik

Post Reply