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 38822] New: - apache uses apr_socket_sendv without checking for writev on SkyOS
Date Wed, 01 Mar 2006 18:00:09 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=38822>.
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=38822

           Summary: apache uses apr_socket_sendv without checking for writev
                    on SkyOS
           Product: Apache httpd-2
           Version: 2.2.0
          Platform: Other
               URL: http://www.skyos.org
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: peter.speybrouck@gmail.com


compiling apache on skyos
=> uses the unix code
skyos does not have writev support so anything in #ifdef HAVE_WRITEV will not be
available from apr, apr checks for writev.
=> apr_socket_sendv in srclib/apr/network_io/unix/sendrecv.c is not available
=> apache uses this function in server/core_filters.c so results in a undefined
reference

solution: use the beos definition of apr_socket_sendv with ifdef:
#ifdef SKYOS
/* SkyOS doesn't have writev for sockets so we use the following instead...
 */
APR_DECLARE(apr_status_t) apr_socket_sendv(apr_socket_t * sock, 
                                           const struct iovec *vec,
                                           apr_int32_t nvec, apr_size_t *len)
{
    *len = vec[0].iov_len;
    return apr_socket_send(sock, vec[0].iov_base, len);
}
#endif

or a check for writev should be added

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