tests/vhost-user-bridge: do not accept more than one connection
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
9652f5785e
commit
98206d4e6b
@ -1200,6 +1200,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 *
|
||||
|
Loading…
Reference in New Issue
Block a user