Skip to content
Permalink
Browse files Browse the repository at this point in the history
Merge pull request #291 from OrangeDog/patch-1
  • Loading branch information
dmlloyd committed Jul 8, 2022
2 parents fd447be + b05531d commit fdefb3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/src/main/java/org/xnio/StreamConnection.java
Expand Up @@ -21,6 +21,7 @@
import java.io.IOException;
import java.util.concurrent.atomic.AtomicReference;

import org.jboss.logging.Logger;
import org.xnio.channels.CloseListenerSettable;
import org.xnio.conduits.ConduitStreamSinkChannel;
import org.xnio.conduits.ConduitStreamSourceChannel;
Expand All @@ -41,6 +42,7 @@ public abstract class StreamConnection extends Connection implements CloseListen
* An empty listener used as a flag, to indicate that close listener has been invoked.
*/
private static final ChannelListener<? super StreamConnection> INVOKED_CLOSE_LISTENER_FLAG = (StreamConnection connection)->{};
private static final Logger log = Logger.getLogger("org.xnio.StreamConnection");

private ConduitStreamSourceChannel sourceChannel;
private ConduitStreamSinkChannel sinkChannel;
Expand Down Expand Up @@ -86,15 +88,15 @@ private final ChannelListener<? super StreamConnection> mergeListeners(final Cha
try {
this.getSourceChannel().shutdownReads();
} catch (IOException e) {
e.printStackTrace();
log.error("Error in read close", e);
}
}

@Override protected void notifyWriteClosed() {
try {
this.getSinkChannel().shutdownWrites();
} catch (IOException e) {
e.printStackTrace();
log.error("Error in write close", e);
}
}

Expand Down

2 comments on commit fdefb3b

@Sachpat
Copy link

@Sachpat Sachpat commented on fdefb3b Sep 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dmlloyd , any idea when will the patched version of xnio with this patch be released? As our security scans keep detecting 3.8.7 as vulnerable.

@dmlloyd
Copy link
Member Author

@dmlloyd dmlloyd commented on fdefb3b Sep 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't have any release planned; I can talk to @fl4via to see what her thoughts are on a release though.

Please sign in to comment.