httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42048] New: - worker_score vhost size and ap_get_server_name() method
Date Wed, 04 Apr 2007 16:31:52 GMT
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: bugs@httpd.apache.org
        ReportedBy: olivier.chirouze@gmail.com


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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message