harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From regi...@apache.org
Subject svn commit: r980632 - /harmony/enhanced/java/trunk/classlib/modules/nio/src/main/java/common/org/apache/harmony/nio/internal/SocketChannelImpl.java
Date Fri, 30 Jul 2010 01:47:34 GMT
Author: regisxu
Date: Fri Jul 30 01:47:34 2010
New Revision: 980632

URL: http://svn.apache.org/viewvc?rev=980632&view=rev
Log:
set preferIPv4Stack property properly when creating stream socket

Modified:
    harmony/enhanced/java/trunk/classlib/modules/nio/src/main/java/common/org/apache/harmony/nio/internal/SocketChannelImpl.java

Modified: harmony/enhanced/java/trunk/classlib/modules/nio/src/main/java/common/org/apache/harmony/nio/internal/SocketChannelImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/nio/src/main/java/common/org/apache/harmony/nio/internal/SocketChannelImpl.java?rev=980632&r1=980631&r2=980632&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/nio/src/main/java/common/org/apache/harmony/nio/internal/SocketChannelImpl.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/nio/src/main/java/common/org/apache/harmony/nio/internal/SocketChannelImpl.java
Fri Jul 30 01:47:34 2010
@@ -43,6 +43,7 @@ import java.nio.channels.UnsupportedAddr
 import java.nio.channels.spi.SelectorProvider;
 
 import org.apache.harmony.luni.net.PlainSocketImpl;
+import org.apache.harmony.luni.net.NetUtil;
 import org.apache.harmony.luni.platform.FileDescriptorHandler;
 import org.apache.harmony.luni.platform.INetworkSystem;
 import org.apache.harmony.luni.platform.Platform;
@@ -147,7 +148,7 @@ class SocketChannelImpl extends SocketCh
         fd = new FileDescriptor();
         status = SOCKET_STATUS_UNCONNECTED;
         if (connect) {
-            networkSystem.createStreamSocket(fd, true);
+            networkSystem.createStreamSocket(fd, NetUtil.preferIPv4Stack());
         }
     }
 



Mime
View raw message