In 1201, Eleanor of Aquitaine survived in the keep of the castle Mirebeau after attackers were within the walls, until her son King John arrived and captured the attackers, rescuing her.
If there were no help from outside, next would be keep wall, or most probably lack of food and water for defenders.