Don't write to connection if connection cannot be written to.

Description

org.jivesoftware.openfire.nio.ConnectionHandler#exceptionCaught is triggered whenever an exception occurs with message processing. The standard response is to send an error to the peer, and close the connection.

if the exception that is caught relates to a problem sending messages to the peer, attempting to send an error (before closing) would likely cause further problems. We should avoid doing this.

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created May 24, 2019 at 1:16 PM
Updated June 14, 2019 at 5:43 PM
Resolved June 14, 2019 at 5:43 PM

Flag notifications