Il 29/11/2013 15:58, Marc-André Lureau ha scritto:
>      closesocket(client->sock);
> +    /* finish any pending coroutines */
> +    client->reply.handle = 0;
> +    client->reply.error = EIO;
> +    nbd_recv_coroutines_enter_all(client);

What about using the same shutdown(2) trick as the server?  Then you can
call nbd_recv_coroutines_enter_all() while client->sock is still valid,
which I find more robust.

Paolo

Reply via email to