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 42578] New: - Allow adding arbitrary objects as connection state.
Date Mon, 04 Jun 2007 12:07:04 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=42578>.
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=42578

           Summary: Allow adding arbitrary objects as connection state.
           Product: Apache httpd-2
           Version: 2.2.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: malinowskirafal@wp.pl


Hello!

I'm writing a module that needs adding an struct to connection state. I tried 
adding pointer to it to r->connection->noted apr_table_t, but it needs char * 
arguments and sometimes does not work with arbitrary object.

Valgrind says:

==13560== Invalid read of size 1
==13560==    at 0x4023041: strlen (mc_replace_strmem.c:246)
==13560==    by 0x43A378D: apr_pstrdup (in /usr/lib/libapr-1.so.0.2.8)
==13560==    by 0x43A6DFF: apr_table_set (in /usr/lib/libapr-1.so.0.2.8)

Could it be possible to make something like apt_table_t, but accepting 
pointers, not strings?

Or I'm just getting it wrong and is there a simpler way to pass a pointer 
beetween successive requests in one connection?

-- 
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