Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] catching SSLHandShakeExceptions in HttpClient

I'm trying to catch an SSL exception when asynchronously connecting with a client:

 httpClient.newRequest(url).send(new BufferingResponseListener(8 * 1024) {
            @Override
            public void onComplete(Result result) {
                if (result.isFailed()) {
                    Throwable t = result.getFailure();
                }

                System.out.println("done");
            }
        });


However it appears if there's an SSL error onComplete never gets called.  Where do I register to listen for these types of errors?

Thanks!

Back to the top