qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: marcandre.lureau@redhat.com
To: qemu-devel@nongnu.org
Cc: victork@redhat.com, mst@redhat.com,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [Qemu-devel] [RFC 4/6] vubr: do not accept more than one connection
Date: Sat,  9 Apr 2016 16:19:05 +0200	[thread overview]
Message-ID: <1460211547-9264-5-git-send-email-marcandre.lureau@redhat.com> (raw)
In-Reply-To: <1460211547-9264-1-git-send-email-marcandre.lureau@redhat.com>

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 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 *
-- 
2.5.5

  parent reply	other threads:[~2016-04-09 14:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-09 14:19 [Qemu-devel] [RFC 0/6] Start a contrib/libvhost-user marcandre.lureau
2016-04-09 14:19 ` [Qemu-devel] [RFC 1/6] vubr: remove false comment marcandre.lureau
2016-04-09 14:19 ` [Qemu-devel] [RFC 2/6] vubr: remove unnecessary dispatcher_remove marcandre.lureau
2016-04-09 14:19 ` [Qemu-devel] [RFC 3/6] vubr: indicate peer disconnected marcandre.lureau
2016-04-09 14:19 ` marcandre.lureau [this message]
2016-04-09 14:19 ` [Qemu-devel] [RFC 5/6] contrib: add libvhost-user marcandre.lureau
2016-04-09 14:19 ` [Qemu-devel] [RFC 6/6] test/vubr: use contrib/libvhost-user marcandre.lureau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1460211547-9264-5-git-send-email-marcandre.lureau@redhat.com \
    --to=marcandre.lureau@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=victork@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).