On Tue, Nov 24, 2009 at 04:16:16PM -0800, Davis, Arlin R wrote:

> -     return ioctlsocket(s, FIONBIO, &nonblocking);
> +     int ret, opt;
> +
> +     ret = ioctlsocket(s, FIONBIO, &nonblocking);
> +
> +     /* no delay for small packets */
> +     if (!ret)
> +             ret = setsockopt(s, IPPROTO_TCP, TCP_NODELAY, 
> +                              (char *)&opt, sizeof(opt));
> +     return ret;
>  }

You probably need to initialize opt..

TCP_NODELAY is not a POSIX feature, and the common UNIX/Linux behavior
is to allow it to be set/unset at any time. Strange the Windows would
be restrictive in this way.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to