Close an active connection.
MCO_RET mcorest_conn_cancel(mcorest_conn_h conn);
conn
This function closes an active connection. The connection must not be cancelled while it is being used by a different thread.