Closed fiorenzino closed 6 years ago
if i'm right, you should close the webclient after use:
private Single<String> get(Vertx vertx, URI uri) { WebClient client = WebClient.create(vertx); Single<HttpResponse<Buffer>> responseHandler = client.get(uri.getPort(), uri.getHost(), uri.getPath()).rxSend(); return responseHandler.map(response -> response.body().toString()) .doAfterTerminate( () -> { client.close(); } ); }
that sounds correct, thanks.
Fixed, thanks.
if i'm right, you should close the webclient after use: