apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43152] - apr_socket_opt_get doesn't work with APR_SO_SNDBUF and APR_SO_RCVBUF
Date Fri, 17 Aug 2007 20:30:50 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=43152>.
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=43152


rpluem@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From rpluem@apache.org  2007-08-17 13:30 -------
Please keep in mind the following comment from the Linux man page for SO_RCVBUF,
SO_RCVBUF:

              Sets  or  gets  the maximum socket receive buffer in bytes.  The
              kernel doubles this value (to allow space for bookkeeping  over-
              head)  when it is set using setsockopt(), and this doubled value
              is returned by getsockopt().

There is no such hint on the man page of e.g. Solaris. In the case that other OS
(e.g. Solaris) do not modify the buffer size given with setsockopt, your patch
is not portable. Especially if someone wants to use the result of
apr_socket_opt_get for a apr_socket_opt_set in a platform independent way.

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


Mime
View raw message