hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1544823 - /httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java
Date Sat, 23 Nov 2013 16:00:05 GMT
Author: olegk
Date: Sat Nov 23 16:00:05 2013
New Revision: 1544823

URL: http://svn.apache.org/r1544823
Log:
 HTTPCORE-357: minor code cleanup

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java?rev=1544823&r1=1544822&r2=1544823&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/reactor/ssl/SSLIOSession.java
Sat Nov 23 16:00:05 2013
@@ -119,9 +119,8 @@ public class SSLIOSession implements IOS
         // Override the status buffer interface
         this.session.setBufferStatus(this);
 
-        final SocketAddress address = session.getRemoteAddress();
-
         if (this.sslMode == SSLMode.CLIENT) {
+            final SocketAddress address = session.getRemoteAddress();
             if (address instanceof InetSocketAddress) {
                 final String hostname = ((InetSocketAddress) address).getHostName();
                 final int port = ((InetSocketAddress) address).getPort();



Mime
View raw message