Skip to content

Commit

Permalink
[fizzed#15] Writing data on closed socket causes unnecessary exceptio…
Browse files Browse the repository at this point in the history
…n in Netty
  • Loading branch information
kornefalk committed Oct 4, 2017
1 parent ae6485a commit 12aa303
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ target/
.classpath
.project
.settings/

.idea/
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,11 @@ public WindowFuture<Integer,PduRequest,PduResponse> sendRequestPdu(PduRequest pd
}
}

if (!this.channel.isOpen()) {
logger.info("Channel closed.");
return;
}

// we need to log the PDU after encoding since some things only happen
// during the encoding process such as looking up the result message
if (configuration.getLoggingOptions().isLogPduEnabled()) {
Expand Down

0 comments on commit 12aa303

Please sign in to comment.