4. Procedure where defendant fails to furnish security or find fresh security.
Where the defendant fails to comply with any order under rule 2 or rule 3, the Court may commit him to the civil prison until the decision of the suit or, where a decree is passed against the defendant, until the decree has been satisfied:
Provided that no person shall be detained in prison under this rule in any case for a longer period than six months, nor for a longer period than six weeks when the amount or value of the subject-matter of the suit does not exceed fifty rupees:
Provided also that no person shall be detained in prison under this rule after he has complied with such order.