Author: rareddy
Date: 2012-05-24 15:25:06 -0400 (Thu, 24 May 2012)
New Revision: 4142
Modified:
trunk/runtime/src/main/java/org/teiid/transport/SocketClientInstance.java
Log:
TEIID-2055, TEIID-2037: cleanup the security context from io threads
Modified: trunk/runtime/src/main/java/org/teiid/transport/SocketClientInstance.java
===================================================================
--- trunk/runtime/src/main/java/org/teiid/transport/SocketClientInstance.java 2012-05-24
19:23:47 UTC (rev 4141)
+++ trunk/runtime/src/main/java/org/teiid/transport/SocketClientInstance.java 2012-05-24
19:25:06 UTC (rev 4142)
@@ -159,6 +159,9 @@
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_TRANSPORT, MessageLevel.DETAIL))
{
LogManager.logDetail(LogConstants.CTX_TRANSPORT, "processing message:" +
packet); //$NON-NLS-1$
}
+ if (this.workContext.getSecurityHelper() != null) {
+ this.workContext.getSecurityHelper().clearSecurityContext();
+ }
final ServerWorkItem work = new ServerWorkItem(this, packet.getMessageKey(), packet,
this.csr);
this.workContext.runInContext(work);
}
Show replies by date