[http] Avoid recursive call of bufferevent write callback when https is in use.