[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: BSD/OS and TCP_NODELAY in slapd (ITS#760)



At 03:33 PM 9/21/00 +0000, erikl@sover.net wrote:
>Full_Name: Erik R. Leo
>Version: 1.2.11
>OS: BSD/OS 4.1
>URL: ftp://ftp.sover.net/pub/unix/openldap/servers-slapd-daemon.c.patch
>Submission from: (NULL) (209.198.87.129)
>
>
>When the LDAP server (slapd) and the LDAP client (ldapsearch, e.g.) are both 
>run on BSD/OS, performance suffers because TCP_NODELAY is only set on the
>"listen" socket and not on the socket that the transaction occurs on (the
>socket returned by the "accept") in servers/slapd/daemon.c.

Please note that this bug is in BSD/OS, not OpenLDAP, and should
be reported to BSD/OS maintainers.  If at all possible, I rather
have BSD/OS fix their bug then to have to implement a workaround
in our code.

man 2 accept
     The accept() argument extracts the first connection request
     on the queue of pending connections, creates a new socket with the same
     properties of s and allocates a new file descriptor for the socket.