[Bug 196061] setsockopt(s, IPPROTO_TCP, TCP_NODELAY, ...) returns -1 && errno == 0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 24 09:53:38 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196061

Marián Černý <majo-bugs.freebsd.org at cerny.sk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |majo-bugs.freebsd.org at cerny
                   |                            |.sk

--- Comment #1 from Marián Černý <majo-bugs.freebsd.org at cerny.sk> ---
This is probably not be related.

On FreeBSD 9.3 it returns -1 and errno=22 (EINVAL) for me in passenger:

Ser/Server.h:655: [ApiServer] Cannot disable Nagle's algorithm on a TCP socket:
Invalid argument (errno=22)

    if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof(int)) == -1
     && errno != ENOPROTOOPT
     && errno != ENOTSUP
     && errno != EXTENSION_EOPNOTSUPP)
    {
        int e = errno;
        SKS_WARN("Cannot disable Nagle's algorithm on a TCP socket: " <<
            strerror(e) << " (errno=" << e << ")");
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list