Re: [Qemu-devel] [PATCH 1/2] nbd: Close socket on negotiation failure.

2014-05-13 Thread Paolo Bonzini
Il 13/05/2014 01:35, Hani Benhabiles ha scritto: Otherwise, the nbd client may hang waiting for the server response. Signed-off-by: Hani Benhabiles --- Quick method to trigger such behaviour: (qemu) nbd_server_start localhost:10809 (qemu) nbd_server_add sd0 $ nbd-client localhost 10809 -name

[Qemu-devel] [PATCH 1/2] nbd: Close socket on negotiation failure.

2014-05-12 Thread Hani Benhabiles
Otherwise, the nbd client may hang waiting for the server response. Signed-off-by: Hani Benhabiles --- Quick method to trigger such behaviour: (qemu) nbd_server_start localhost:10809 (qemu) nbd_server_add sd0 $ nbd-client localhost 10809 -name /dev/nbd0 Negotiation: .. (Client will hang i