[PATCH] Set session state to RESPONSE_SENT after sending response.