There is no need for shutdown_socket() to touch s->state directly - this can be all done in skt_shutdown().
Attach a file by drag & drop or click to upload