summaryrefslogtreecommitdiff
path: root/java/common
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2011-11-11 15:45:48 +0000
committerRobert Gemmell <robbie@apache.org>2011-11-11 15:45:48 +0000
commit4316192ae867d6ae7f6ad8e87594572fa807572c (patch)
treea33e25152b014a1ddfc1595a15ab4cfaa28c723a /java/common
parent328b86ad82b57c411fe645bfe0aadb985a4343b8 (diff)
downloadqpid-python-4316192ae867d6ae7f6ad8e87594572fa807572c.tar.gz
QPID-3611: use socket.close() on SSLSockets to prevent IoReceiver causing an UnsupportedOperationException, e.g during ConnectionClose on the broker
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1200921 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common')
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/network/io/IoReceiver.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/transport/network/io/IoReceiver.java b/java/common/src/main/java/org/apache/qpid/transport/network/io/IoReceiver.java
index d4b5975e54..5b714434d9 100644
--- a/java/common/src/main/java/org/apache/qpid/transport/network/io/IoReceiver.java
+++ b/java/common/src/main/java/org/apache/qpid/transport/network/io/IoReceiver.java
@@ -33,6 +33,8 @@ import java.net.SocketException;
import java.nio.ByteBuffer;
import java.util.concurrent.atomic.AtomicBoolean;
+import javax.net.ssl.SSLSocket;
+
/**
* IoReceiver
*
@@ -94,7 +96,7 @@ final class IoReceiver implements Runnable, Closeable
{
try
{
- if (shutdownBroken)
+ if (shutdownBroken || socket instanceof SSLSocket)
{
socket.close();
}