[Git][java-team/jboss-xnio][upstream] New upstream version 3.8.8
Markus Koschany (@apo)
gitlab at salsa.debian.org
Thu Sep 22 22:18:14 BST 2022
Markus Koschany pushed to branch upstream at Debian Java Maintainers / jboss-xnio
Commits:
458573dc by Markus Koschany at 2022-09-22T23:12:01+02:00
New upstream version 3.8.8
- - - - -
5 changed files:
- api/pom.xml
- api/src/main/java/org/xnio/StreamConnection.java
- api/src/main/java/org/xnio/_private/Messages.java
- nio-impl/pom.xml
- pom.xml
Changes:
=====================================
api/pom.xml
=====================================
@@ -37,7 +37,7 @@
<parent>
<groupId>org.jboss.xnio</groupId>
<artifactId>xnio-all</artifactId>
- <version>3.8.7.Final</version>
+ <version>3.8.8.Final</version>
</parent>
<dependencies>
=====================================
api/src/main/java/org/xnio/StreamConnection.java
=====================================
@@ -21,6 +21,7 @@ package org.xnio;
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;
@@ -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;
@@ -86,7 +88,7 @@ public abstract class StreamConnection extends Connection implements CloseListen
try {
this.getSourceChannel().shutdownReads();
} catch (IOException e) {
- e.printStackTrace();
+ msg.connectionNotifyReadClosedFailed(e, this);
}
}
@@ -94,7 +96,7 @@ public abstract class StreamConnection extends Connection implements CloseListen
try {
this.getSinkChannel().shutdownWrites();
} catch (IOException e) {
- e.printStackTrace();
+ msg.connectionNotifyWriteClosedFailed(e, this);
}
}
=====================================
api/src/main/java/org/xnio/_private/Messages.java
=====================================
@@ -43,6 +43,7 @@ import org.jboss.logging.annotations.LogMessage;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageLogger;
import org.xnio.IoFuture;
+import org.xnio.StreamConnection;
import org.xnio.channels.AcceptingChannel;
import org.xnio.channels.ConcurrentStreamChannelAccessException;
import org.xnio.channels.ConnectedChannel;
@@ -361,4 +362,12 @@ public interface Messages extends BasicLogger {
@Message(value = "Expanded buffer enabled due to overflow with empty buffer, expanded buffer size is %s")
@LogMessage(level = TRACE)
void expandedSslBufferEnabled(int bufferSize);
+
+ @Message(value = "Notify read closed for connection %s failed")
+ @LogMessage(level = TRACE)
+ void connectionNotifyReadClosedFailed(@Cause Throwable cause, StreamConnection connection);
+
+ @Message(value = "Notify write closed for connection %s failed")
+ @LogMessage(level = TRACE)
+ void connectionNotifyWriteClosedFailed(@Cause Throwable cause, StreamConnection connection);
}
=====================================
nio-impl/pom.xml
=====================================
@@ -31,7 +31,7 @@
<parent>
<groupId>org.jboss.xnio</groupId>
<artifactId>xnio-all</artifactId>
- <version>3.8.7.Final</version>
+ <version>3.8.8.Final</version>
</parent>
<properties>
=====================================
pom.xml
=====================================
@@ -32,7 +32,7 @@
<artifactId>xnio-all</artifactId>
<packaging>pom</packaging>
<name>XNIO Parent POM</name>
- <version>3.8.7.Final</version>
+ <version>3.8.8.Final</version>
<description>The aggregator POM of the XNIO project</description>
<licenses>
View it on GitLab: https://salsa.debian.org/java-team/jboss-xnio/-/commit/458573dc79f269d663a12d12bf6e765171bcec7c
--
View it on GitLab: https://salsa.debian.org/java-team/jboss-xnio/-/commit/458573dc79f269d663a12d12bf6e765171bcec7c
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20220922/d3aba6a0/attachment.htm>
More information about the pkg-java-commits
mailing list