sock->closing = true;
- isc__nmsocket_clearcb(sock);
- isc__nmsocket_timer_stop(sock);
- isc__nm_stop_reading(sock);
-
/*
* The order of the close operation is important here, the uv_close()
* gets scheduled in the reverse order, so we need to close the timer
* last, so its gone by the time we destroy the socket
*/
- /* 2. close the listening socket */
+ /* 1. close the listening socket */
isc__nmsocket_clearcb(sock);
isc__nm_stop_reading(sock);
if (sock->client) {
}
uv_close(&sock->uv_handle.handle, udp_close_cb);
- /* 1. close the read timer */
+ /* 2. close the read timer */
isc__nmsocket_timer_stop(sock);
uv_close((uv_handle_t *)&sock->read_timer,
sock->client ? NULL : udp_timer_close_cb);