- fixed potential deadlock if cancel is called before http request is complete