[mod_cluster-dev] Reuse of incoming AJP connections to send messages to workers

Bela Ban bban at redhat.com
Mon May 10 03:57:59 EDT 2010


It seems httpd attempts to establish TCP connections to registered 
workers. This won't work if a worker has a private IP address, e.g. 
192.168.1.5.

Can't httpd reuse *incoming* TCP connections from workers to *send* 
messages to them ? This would require httpd to keep incoming connections 
from workers open.


The scenario is as follows:

    * httpd runs on a public IP
    * We have a worker W which runs on a private IP, e.g.
      192.168.1.5:8009 is its AJP connector
    * W registers with httpd under 192.168.1.5:8009, this works
    * Now someone tries to access a webapp
    * Say httpd picks W
    * Now httpd attempts to connect to 192.168.1.5:8009, and this fails

The question is why does httpd not reuse the TCP connection established 
by W to httpd to send the AJP request back to W ?

-- 
Bela Ban
Lead JGroups / Clustering Team
JBoss



More information about the mod_cluster-dev mailing list