DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42048>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42048

           Summary: worker_score vhost size and ap_get_server_name() method
           Product: Apache httpd-2
           Version: 2.0.58
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Looking at worker_score structure, it appears that vhost is stored on 32 chars:
char worker_score::vhost[32]

Using method ap_get_server_name() returns a string with no limit size I know of.

The consequence is: if you use ap_get_server_name() and
ap_get_scoreboard_worker(i, j) followed by ->vhost on the ws_record object, you
get two string with different sizes.

I'm working on module mod_vhost_limit (http://www.ivn.cl/apache/) that needs to
do the comparison and because of this difference, the comparison fails with same
servername and vhost name.

Also, on status page also, the vhost is displayed with maximum 32 chars.

I suppose 32 chars for vhost is bit few.

Olivier

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to