Skip to content

Commit

Permalink
Trying to fix - vert-x#39
Browse files Browse the repository at this point in the history
  • Loading branch information
Manish Kumar committed Jun 16, 2015
1 parent 0de3f78 commit baadf2c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/io/vertx/rxcore/java/http/RxHttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Throwable>() {
@Override
public void handle(Throwable event) {
rh.fail(event);
}
});
// if req fails, notify observers
req.exceptionHandler(new Handler<Throwable>() {
@Override
Expand Down

0 comments on commit baadf2c

Please sign in to comment.