diff --git a/src/main/java/io/vertx/rxcore/java/http/RxHttpClient.java b/src/main/java/io/vertx/rxcore/java/http/RxHttpClient.java index c274173..b62072e 100644 --- a/src/main/java/io/vertx/rxcore/java/http/RxHttpClient.java +++ b/src/main/java/io/vertx/rxcore/java/http/RxHttpClient.java @@ -109,6 +109,13 @@ public void handle(HttpClientResponse r) { }; HttpClientRequest req=core.request(method,uri,rh); + // if connection negotion fails - exception handler on http-client. SSL Exception aren't caught on httpRequest, but on httpClient. + this.core.exceptionHandler(new Handler() { + @Override + public void handle(Throwable event) { + rh.fail(event); + } + }); // if req fails, notify observers req.exceptionHandler(new Handler() { @Override