src/session.c
void session_shutdown(struct session *session, int why)
{
	if (session->req->flags & (CF_SHUTW|CF_SHUTW_NOW))
		return;

	channel_shutw_now(session->req);
	channel_shutr_now(session->rep);
	session->task->nice = 1024;
	if (!(session->flags & SN_ERR_MASK))
		session->flags |= why;
	task_wakeup(session->task, TASK_WOKEN_OTHER);
}
/* kill a session and set the termination flags to <why> (one of SN_ERR_*) */
kill a session and set the termination flags to  (one of SN_ERR_*)
kill a session and set the termination flags to ( one of SN_ERR_ * )
void session_shutdown(struct session *session, int why)
{
	if (session->req->flags & (CF_SHUTW|CF_SHUTW_NOW))
		return;
	channel_shutw_now(session->req);
	channel_shutr_now(session->rep);
	session->task->nice = 1024;
	if (!(session->flags & SN_ERR_MASK))
		session->flags |= why;
	task_wakeup(session->task, TASK_WOKEN_OTHER);
}
void session_shutdown ( struct session * session , int why ) { if ( session -> req -> flags & ( CF_SHUTW | CF_SHUTW_NOW ) ) return ; channel_shutw_now ( session -> req ) ; channel_shutr_now ( session -> rep ) ; session -> task -> nice = 1024 ; if ( ! ( session -> flags & SN_ERR_MASK ) ) session -> flags |= why ; task_wakeup ( session -> task , TASK_WOKEN_OTHER ) ; }
kill a session and set the termination flags to <why> (one of SN_ERR_*)
kill a session and set the termination flags to <why > ( one of SN_ERR_ * )