When I am trying to test a connection for default publish or dispatcher flush, I get a connection timeout error. The servers were recently moved to Amazon AWS and initially, i thought it could be because of the security groups/network that may be causing the timeout as both author and publish were on different servers. Then i started to test dispatcher flush setting, as i have a temp webserver running on the same instance as the author and i still got a connection timeout. Here is the error i see in the error.log file on author.
/content not successful: java.net.ConnectException: Connection timed out (Connection timed out) Conversation follows
07.01.2018 15:43:50.455 *ERROR* [10.173.24.234 [1515339700995] GET /etc/replication/agents.author/flush.test.html HTTP/1.1] com.day.cq.replication.Agent.flush >> Content-Type: application/octet-stream
07.01.2018 15:43:50.457 *INFO* [10.173.24.234 [1515339700995] GET /etc/replication/agents.author/flush.test.html HTTP/1.1] com.day.cq.replication.impl.ReplicatorImpl Processed replication: setup 1ms, checked 2ms, pre 0ms, build 2ms, queued 129442ms, status 2ms, total 129449ms