You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2007/08/17 04:21:03 UTC

DO NOT REPLY [Bug 43152] New: - apr_socket_opt_get doesn't work with APR_SO_SNDBUF and APR_SO_RCVBUF

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

           Summary: apr_socket_opt_get doesn't work with APR_SO_SNDBUF and
                    APR_SO_RCVBUF
           Product: APR
           Version: 1.2.8
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: celving@netflix.com


apr_socket_opt_get(socket, APR_SO_SNDBUF, &opt) and apr_socket_opt_get(socket,
APR_SO_RCVBUF, &opt) always set opt to 0. It would be useful if these calls
instead returned the send buffer and receive buffer sizes respectively.

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


DO NOT REPLY [Bug 43152] - apr_socket_opt_get doesn't work with APR_SO_SNDBUF and APR_SO_RCVBUF

Posted by bu...@apache.org.
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





------- Additional Comments From rpluem@apache.org  2007-08-17 12:59 -------
Why using setsockopt in the SO_RCVBUF case?

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


DO NOT REPLY [Bug 43152] - apr_socket_opt_get doesn't work with APR_SO_SNDBUF and APR_SO_RCVBUF

Posted by bu...@apache.org.
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





------- Additional Comments From celving@netflix.com  2007-08-17 13:07 -------
Created an attachment (id=20676)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20676&action=view)
Fix getsockopt/setsockopt typo in previous patch


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


DO NOT REPLY [Bug 43152] - apr_socket_opt_get doesn't work with APR_SO_SNDBUF and APR_SO_RCVBUF

Posted by bu...@apache.org.
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


DO NOT REPLY [Bug 43152] - apr_socket_opt_get doesn't work with APR_SO_SNDBUF and APR_SO_RCVBUF

Posted by bu...@apache.org.
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





------- Additional Comments From celving@netflix.com  2007-08-17 14:14 -------
I don't think this patch introduces any new portability issues. The semantics of
the current apr_socket_opt_set(..., APR_SO_SNDBUF, ...) aren't portable, but
this patch shouldn't change that.

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


DO NOT REPLY [Bug 43152] - apr_socket_opt_get doesn't work with APR_SO_SNDBUF and APR_SO_RCVBUF

Posted by bu...@apache.org.
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


celving@netflix.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #20671|0                           |1
        is obsolete|                            |




------- Additional Comments From celving@netflix.com  2007-08-17 13:06 -------
(From update of attachment 20671)
Patch mistakenly used setsockopt instead of getsockopt for SO_RCVBUF


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


DO NOT REPLY [Bug 43152] - apr_socket_opt_get doesn't work with APR_SO_SNDBUF and APR_SO_RCVBUF

Posted by bu...@apache.org.
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


celving@netflix.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |43153
              nThis|                            |




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


DO NOT REPLY [Bug 43152] - apr_socket_opt_get doesn't work with APR_SO_SNDBUF and APR_SO_RCVBUF

Posted by bu...@apache.org.
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





------- Additional Comments From celving@netflix.com  2007-08-16 19:23 -------
Created an attachment (id=20671)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20671&action=view)
Implement APR_SO_SNDBUF and APR_SO_RCVBUF in apr_socket_opt_get


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