Foren

How to set http request time out in Liferay server

thumbnail
Raju V, geändert vor 7 Jahren.

How to set http request time out in Liferay server

New Member Beiträge: 11 Beitrittsdatum: 19.10.16 Neueste Beiträge
I'm currently working on a Liferay project. The http request time out is limited to 30seconds in 1st attempt and 1 min in the second attempt. I'm just breaking my head to know how can I change the http request time because I dont want it to be 30seconds for 1st attempt and I should be able to modify it. Any help would be appreciated. TY.

Observations:

-If the first request is taking more than 30 seconds, the request is getting aborted and new request is being made by itself.
-If the second request is taking more than 1 minute, the page is getting broken.

Please look at the image HttpRequestImage
thumbnail
Samuel Kong, geändert vor 7 Jahren.

RE: How to set http request time out in Liferay server

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
This should be a setting that you can configure in your app server. Try checking your app server's documentation.
thumbnail
Raju V, geändert vor 7 Jahren.

RE: How to set http request time out in Liferay server

New Member Beiträge: 11 Beitrittsdatum: 19.10.16 Neueste Beiträge
Hi Samuel,

I tried changing asyncTimeout to 60000ms (where default value if this is 30000ms) .But I did not see any change in the request timeout which is still 30s.

Changes are made in the following code block. ( path .. ~\tomcat-8.0.32\conf\server.xml)

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000" asyncTimeout ="600000"
redirectPort="8443" URIEncoding="UTF-8" />


Could you please let me know if this is the right place to set timeout.
thumbnail
Raju V, geändert vor 7 Jahren.

RE: How to set http request time out in Liferay server

New Member Beiträge: 11 Beitrittsdatum: 19.10.16 Neueste Beiträge
Samuel Kong:
This should be a setting that you can configure in your app server. Try checking your app server's documentation.



Hi Samuel,

I tried changing asyncTimeout to 60000ms (where default value if this is 30000ms) .But I did not see any change in the request timeout which is still 30s.

Changes are made in the following code block. ( path .. ~\tomcat-8.0.32\conf\server.xml)

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000" asyncTimeout ="600000"
redirectPort="8443" URIEncoding="UTF-8" />

Could you please let me know if this is the right place to set timeout.
thumbnail
Samuel Kong, geändert vor 7 Jahren.

RE: How to set http request time out in Liferay server

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
Hi Raju,
Unfortunately, I may not be the best person to answer questions about Tomcat configuration. You may want to try posting your question to the Tomcat community.
thumbnail
Olaf Kock, geändert vor 7 Jahren.

RE: How to set http request time out in Liferay server

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
Raju V:
how can I change the http request time because I dont want it to be 30seconds for 1st attempt and I should be able to modify it.


I feel like I'm not fully understanding you. However, timeouts are rather an issue to be handled on webserver or application server level. And even then, you might run into different opinions (on those values) for every single proxy you hit in between.
thumbnail
Raju V, geändert vor 7 Jahren.

RE: How to set http request time out in Liferay server

New Member Beiträge: 11 Beitrittsdatum: 19.10.16 Neueste Beiträge
Olaf Kock:
Raju V:
how can I change the http request time because I dont want it to be 30seconds for 1st attempt and I should be able to modify it.


I feel like I'm not fully understanding you. However, timeouts are rather an issue to be handled on webserver or application server level. And even then, you might run into different opinions (on those values) for every single proxy you hit in between.



The asyncTimeout values is set 30s by default in tomcat server's configuration. I need to change it to 60 seconds.