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: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to