Fix communication with DA tool proxy network environment 95/27195/1
authorjungwook.ryu <jungwook.ryu@samsung.com>
Sun, 7 Sep 2014 07:39:50 +0000 (16:39 +0900)
committerjungwook.ryu <jungwook.ryu@samsung.com>
Sun, 7 Sep 2014 07:40:02 +0000 (16:40 +0900)
Change-Id: I9a7018bd3d4f75428c84078ab91dbc1507e51fc3
Signed-off-by: jungwook.ryu <jungwook.ryu@samsung.com>
org.tizen.dynamicanalysis.ide.eplugin/src/org/tizen/dynamicanalysis/ide/eplugin/communication/DAServerManager.java
package/changelog
package/pkginfo.manifest

index 3c1c627..defc9b1 100644 (file)
@@ -34,6 +34,9 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStreamWriter;
 import java.io.RandomAccessFile;
+import java.net.InetAddress;
+import java.net.InetSocketAddress;
+import java.net.Proxy;
 import java.net.Socket;
 import java.net.UnknownHostException;
 import java.nio.channels.FileChannel;
@@ -62,8 +65,6 @@ public class DAServerManager extends Thread {
        private String reservedExecutablePath; //$NON-NLS-1$
        private List<String> reservedLocalPackagePathList; //$NON-NLS-1$
        
-       private String LOCAL_HOST = "localhost"; //$NON-NLS-1$
-
        private final String IDE_DA_COMMUNICATION_TYPE_1 = "STATUS"; //$NON-NLS-1$
        private final String IDE_DA_COMMUNICATION_TYPE_2 = "RUN"; //$NON-NLS-1$
        private final String IDE_DA_COMMUNICATION_TYPE_3 = "SOURCE"; //$NON-NLS-1$
@@ -294,7 +295,9 @@ public class DAServerManager extends Thread {
 
        private boolean setServerSocket() {
                try {
-                       ideClientSocket = new Socket(LOCAL_HOST, serverPort);
+                       ideClientSocket = new Socket(Proxy.NO_PROXY);           /* handle environment in Proxy network */        
+                       InetSocketAddress socketAddress = new InetSocketAddress(InetAddress.getLocalHost(), serverPort);
+                       ideClientSocket.connect(socketAddress);
                } catch (UnknownHostException e) {
                        e.printStackTrace();
                        ideClientSocket = null;
index c42c7c6..f66898d 100644 (file)
@@ -1,3 +1,6 @@
+* 2.2.12
+- Fix communication with DA tool proxy network environment
+== jungwook.ryu <jungwook.ryu@samsung.com> 2014-09-07
 * 2.2.11
 - Change the method name of PlatformRootstrap
 == shihyun.kim <shihyun.kim@samsung.com> 2014-09-01
index 70c8f29..708050b 100644 (file)
@@ -1,4 +1,4 @@
-Version:2.2.11
+Version:2.2.12
 Source:dynamic-analysis-ide-eplugin
 Maintainer:Jungwook Ryu <jungwook.ryu@samsung.com>, Juyoung Kim <j0.kim@samsung.com>