Project

General

Profile

stream error is not sending error condition

Anusha Anusha
Added over 1 year ago

Hi,

When a stream error happens in websocket connection, user is not getting 'condition'. In AbstractWebSocketConnector.java file, fireOnError method sets the condition based on the "response" element. But onError method is passing null instead of response as shown below.

protected void onError(Element response, Throwable ex) {
        try {
                if (response != null) {
                        if (handleSeeOtherHost(response))
                                return;
                }
                stop();
                fireOnError(null, ex, AbstractWebSocketConnector.this.context.getSessionObject());
        } catch (JaxmppException ex1) {
                log.log(Level.SEVERE, null, ex1);
        }
}

Replies (1)

Added by Wojciech Kapcia over 1 year ago

Thank you for the report - I've created an issue #4061 and added you as watcher.

    (1-1/1)