tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47224] New: Hostname and Port Changes from Status Worker do not affect new connections either
Date Tue, 19 May 2009 22:39:17 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47224

           Summary: Hostname and Port Changes from Status Worker do not
                    affect new connections either
           Product: Tomcat Connectors
           Version: 1.2.28
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_jk
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: joe@k12s.phast.umass.edu


Hostname and Port Changes from Status Worker do not affect new connections
either

I do not know if this is a documentation issue or a software bug.  I am hoping
it is a software bug (because I want it to work!), but I'll settle for some
clarification in the documentation.

If you change the hostname or port of an AJP worker from the Status Worker, the
change does not appear to always work.  The documentation states:
---
http://tomcat.apache.org/connectors-doc/reference/status.html:

Note that changing the host name or port will only take effect for new
connections. Already established connections to the old address will still be
used. 
---

This is, actually, exactly the behavior I want.  Old connections continue to
use the old settings, but new connections use the new settings.  What I am
seeing is my change is not affecting new connections either (I am using a
non-keep alive new TCP connection... I am using curl).  I believe there must be
some sort of worker internal to mod_jk, and that worker is not being updated
with the setting.

If I make TWO new requests in parallel, the first request will get old
settings, and the second request will get the new settings.

So either the internal workers need to be signaled for a graceful shutdown
after a port or hostname change (after handling their existing requests) or the
existing internal workers need to be notified of the change.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message