Re: [PATCH 05/10] Check return status for setting TCP_NODELAY option and generate a VIR_DEBUG message on failure. Allow connection to continue.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 03, 2013 at 02:16:17PM -0500, John Ferlan wrote:
> ---
>  src/xen/xend_internal.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/src/xen/xend_internal.c b/src/xen/xend_internal.c
> index 84a25e8..1f779b0 100644
> --- a/src/xen/xend_internal.c
> +++ b/src/xen/xend_internal.c
> @@ -91,8 +91,10 @@ do_connect(virConnectPtr xend)
>      /*
>       * try to desactivate slow-start
>       */
> -    setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (void *)&no_slow_start,
> -               sizeof(no_slow_start));
> +    if (setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (void *)&no_slow_start,
> +                   sizeof(no_slow_start)) < 0) {
> +        VIR_DEBUG("Unable to disable nagle algorithm");
> +    }

Hmm, I'd just make this  ignore_value() i think - it is something we
expect to fail with UNIX sockets

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]