Are you sure this is right? uri.getPort will return -1 if using the scheme default port. I think you should be using `AsyncHttpProviderUtils.getHost/getPort`