DO NOT REPLY [Bug 5370] New: sockopts attempts to set options after the socket is open

samba-bugs at samba.org samba-bugs at samba.org
Wed Apr 2 22:50:55 GMT 2008


https://bugzilla.samba.org/show_bug.cgi?id=5370

           Summary: sockopts attempts to set options after the socket is
                    open
           Product: rsync
           Version: 2.6.9
          Platform: x86
               URL: http://people.freebsd.org/~gordon/rsync-socket.diff
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: gordon at tetlows.org
         QAContact: rsync-qa at samba.org


rsync 2.6.9 (and from the looks of it 3.0.0) attempts to set socket options
(either via --sockopts or the rsyncd.conf socket options conf statement) after
the socket was listen()ed or connect()ed.

Specifically, I was trying to use SO_RCVBUF and SO_SNDBUF to increase my window
size and didn't get anywhere. strace confirmed that the setsockopt call
occurred after the socket was connected.

See the patch at the URL which moves the setsockopt calls into socket.c after
the sockets are created but before they are connect()ed or listen()ed


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list