static void nbd_teardown_connection(NbdClientSession *client)

{

    /* finish any pending coroutines */

    shutdown(client->sock, 2);

    nbd_recv_coroutines_enter_all(client);



    nbd_client_session_detach_aio_context(client);

    closesocket(client->sock);

    client->sock = -1;

}

static void nbd_teardown_connection(NbdClientSession *client)

{

    

    shutdown(client->sock, 2);

    nbd_recv_coroutines_enter_all(client);



    nbd_client_session_detach_aio_context(client);

    closesocket(client->sock);

    client->sock = -1;

}

static void FUNC_0(NbdClientSession *VAR_0)

{

    

    shutdown(VAR_0->sock, 2);

    nbd_recv_coroutines_enter_all(VAR_0);



    nbd_client_session_detach_aio_context(VAR_0);

    closesocket(VAR_0->sock);

    VAR_0->sock = -1;

}

static void FUNC_0(NbdClientSession *VAR_0)
{ shutdown(VAR_0->sock, 2); nbd_recv_coroutines_enter_all(VAR_0); nbd_client_session_detach_aio_context(VAR_0); closesocket(VAR_0->sock); VAR_0->sock = -1; }