Affects Version/s: 7.0.X EE, Master
Liferay does not specify any timeout for HTTP connections using TunnelUtil, and does not offer a means to do so. This leads to extremely long load times or even loss of usability for administrators if the remote server goes down.
Steps to reproduce:
- Start up two Liferay instances on different machines (or one using a VM)
- Create a new site on both instances
- On the first instance of Liferay, set up remote staging on the new site to publish to the new site on the second instance (make sure firewall is disabled)
- Create a public page on the first (Staging) instance and publish it to the live site
- Restrict remote access to the second ("live") machine/VM (either through the use of firewall, removal of security group, etc.)
- On the first (Staging) instance, log out, and navigate back to the site as a guest user (i.e., change the URL)
- Log back in as the Test user and navigate back to the page again
Expected result: for both the Test and guest user, page load times are roughly the same, and neither longer than ten seconds.
Actual result: The Test user takes significantly longer to load the page, and it takes longer than ten seconds. The guest user only takes a few seconds.
Reproduced in master: bcbba7a12661b0f6352f4b0c7d477a52ac5a55db
Reproduced in ee-7.0.x: 75542d7eadadd5e38fa0259b108571f4012b0363