http: add clearTimeout feature