From patchwork Sat Jun 4 21:05:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 9154951 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C185E60221 for ; Sat, 4 Jun 2016 21:06:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B615F2824A for ; Sat, 4 Jun 2016 21:06:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AACF828327; Sat, 4 Jun 2016 21:06:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5136D2824A for ; Sat, 4 Jun 2016 21:06:12 +0000 (UTC) Received: from localhost ([::1]:34102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9Iln-0000gG-Dn for patchwork-qemu-devel@patchwork.kernel.org; Sat, 04 Jun 2016 17:06:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9IlF-0000eR-E7 for qemu-devel@nongnu.org; Sat, 04 Jun 2016 17:05:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9IlB-0006ye-Vm for qemu-devel@nongnu.org; Sat, 04 Jun 2016 17:05:37 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:35384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9IlB-0006yY-LZ for qemu-devel@nongnu.org; Sat, 04 Jun 2016 17:05:33 -0400 Received: by mail-wm0-x241.google.com with SMTP id k184so804690wme.2 for ; Sat, 04 Jun 2016 14:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GOmFY2ys9giPLlSMJx1VGzogE7vupOEdDYrJ7itwA5k=; b=JlnxlX5Dw2FqL4SFtFy50T3+T0/u2wgK94TeSF14JJ21o28NDPMw12AMuCdFqwDVM/ GyFkwSv+lpiNuGbMSzDP6iDnE13YRSb/XSbTlSJV7zWdPE3kpRi7cA0Xr4H8gJ9p7Mwz dmMq93NTxOjNbuMolp32NYZCRiHuLFKxlii497FzdvV1CRU4MlhfSDUcLVLtdsMjYuip w/3xcn8BVGA6mIar9g2j9u2qMbIShWCfzbyEwJZ6gUdHjSbe0eAYP0wvOO4FC75VQ4A1 X8m3qY4rSUzdM8s7CnueKdeaQkbSoVQPCfwzKHC5ZQ5yYb0ikMdWz/L/hFuDDc3DsrXG rX0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=GOmFY2ys9giPLlSMJx1VGzogE7vupOEdDYrJ7itwA5k=; b=fXmxeEKgVzRAiFwPH1bim00viwe6D82tIUfU2+L/8k+ZFfShjHr4uT7z0f8SyWKY3q C7sOO4PiT47m9ZOO9w40qfALeypx3968wW4lYJz3M2IbUfgm+migCF3Ju6cwl0FRHVZs y/5Nxevb2Of4tuqWosgDBWTRFIIQSGVNSNrmpOJs8WFBijHBWYWBOq9rwidCYeOr8ahJ OqXZ3VoyxBljhbxLI3szgMMqPX+5IpFT66LlP0Ra/KieQdOPvOw2NMsX4dh+QVDCSICI fFEfQYjHrqD9k6LrUAGOz9zw961ZnNXDr2paeBT5qtT+Lfm9Wl2gBaQSS2Lo51RW7TMv wPgA== X-Gm-Message-State: ALyK8tJV3YszjCEtcGeTLR/x4MAcF0n1SFOzvChwlwojeoB+YVN7zn1bSslO6iG6NpU1pw== X-Received: by 10.194.5.129 with SMTP id s1mr9233412wjs.96.1465074332767; Sat, 04 Jun 2016 14:05:32 -0700 (PDT) Received: from localhost (APoitiers-110-1-1-235.w193-248.abo.wanadoo.fr. [193.248.103.235]) by smtp.gmail.com with ESMTPSA id a81sm6171682wma.16.2016.06.04.14.05.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jun 2016 14:05:32 -0700 (PDT) From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Date: Sat, 4 Jun 2016 23:05:19 +0200 Message-Id: <1465074321-22507-5-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1465074321-22507-1-git-send-email-marcandre.lureau@redhat.com> References: <1465074321-22507-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::241 Subject: [Qemu-devel] [PATCH 4/6] vubr: do not accept more than one connection X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , victork@redhat.com, mst@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- tests/vhost-user-bridge.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/vhost-user-bridge.c b/tests/vhost-user-bridge.c index b7bb79a..c21cd79 100644 --- a/tests/vhost-user-bridge.c +++ b/tests/vhost-user-bridge.c @@ -1196,6 +1196,7 @@ vubr_accept_cb(int sock, void *ctx) } DPRINT("Got connection from remote peer on sock %d\n", conn_fd); dispatcher_add(&dev->dispatcher, conn_fd, ctx, vubr_receive_cb); + dispatcher_remove(&dev->dispatcher, sock); } static VubrDev *