List Info

Thread: DO NOT REPLY New: - worker_score vhost size and ap_get_server_name() method




DO NOT REPLY New: - worker_score vhost size and ap_get_server_name() method
country flaguser name
United States
2007-04-04 11:31:52
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=42
048>.
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: bugshttpd.apache.org
        ReportedBy: olivier.chirouzegmail.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=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: bugs-unsubscribehttpd.apache.org
For additional commands, e-mail: bugs-helphttpd.apache.org


DO NOT REPLY - worker_score vhost size and ap_get_server_name() method
country flaguser name
United States
2007-10-23 19:11:41
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=42
048>.
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


wroweapache.org changed:

           What    |Removed                     |Added
------------------------------------------------------------
----------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From wroweapache.org  2007-10-23
17:11 -------
It's a fixed field, it cannot be unlimited.  To write your
module using the
scoreboard field, you would simply turn off host name
lookups.  Trivial.
Otherwise you need a mechanism other than a scoreboard.

0000:0000:0000:0000:0000:0000

appears to fit in a 32 char field.


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

------------------------------------------------------------
---------
To unsubscribe, e-mail: bugs-unsubscribehttpd.apache.org
For additional commands, e-mail: bugs-helphttpd.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )