Remove workaround for ipv6 link-localaddresses as it not work on most os / jdk versions. See #267 and #295
This commit is contained in:
parent
3edef63fa8
commit
202df0618c
@ -27,9 +27,7 @@ import io.netty.channel.ChannelStateEvent;
|
|||||||
import io.netty.channel.MessageEvent;
|
import io.netty.channel.MessageEvent;
|
||||||
import io.netty.logging.InternalLogger;
|
import io.netty.logging.InternalLogger;
|
||||||
import io.netty.logging.InternalLoggerFactory;
|
import io.netty.logging.InternalLoggerFactory;
|
||||||
import io.netty.util.internal.SocketUtil;
|
|
||||||
|
|
||||||
import java.net.InetSocketAddress;
|
|
||||||
import java.net.SocketAddress;
|
import java.net.SocketAddress;
|
||||||
import java.nio.channels.ClosedChannelException;
|
import java.nio.channels.ClosedChannelException;
|
||||||
|
|
||||||
@ -101,7 +99,6 @@ class NioClientSocketPipelineSink extends AbstractNioChannelSink {
|
|||||||
final NioClientSocketChannel channel, final ChannelFuture cf,
|
final NioClientSocketChannel channel, final ChannelFuture cf,
|
||||||
SocketAddress remoteAddress) {
|
SocketAddress remoteAddress) {
|
||||||
try {
|
try {
|
||||||
remoteAddress = SocketUtil.stripZoneId((InetSocketAddress) remoteAddress);
|
|
||||||
channel.getJdkChannel().connect(remoteAddress);
|
channel.getJdkChannel().connect(remoteAddress);
|
||||||
channel.getCloseFuture().addListener(new ChannelFutureListener() {
|
channel.getCloseFuture().addListener(new ChannelFutureListener() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -18,7 +18,6 @@ package io.netty.channel.socket.oio;
|
|||||||
import static io.netty.channel.Channels.*;
|
import static io.netty.channel.Channels.*;
|
||||||
|
|
||||||
import java.io.PushbackInputStream;
|
import java.io.PushbackInputStream;
|
||||||
import java.net.InetSocketAddress;
|
|
||||||
import java.net.SocketAddress;
|
import java.net.SocketAddress;
|
||||||
import java.util.concurrent.Executor;
|
import java.util.concurrent.Executor;
|
||||||
|
|
||||||
@ -30,7 +29,6 @@ import io.netty.channel.ChannelState;
|
|||||||
import io.netty.channel.ChannelStateEvent;
|
import io.netty.channel.ChannelStateEvent;
|
||||||
import io.netty.channel.MessageEvent;
|
import io.netty.channel.MessageEvent;
|
||||||
import io.netty.util.internal.DeadLockProofWorker;
|
import io.netty.util.internal.DeadLockProofWorker;
|
||||||
import io.netty.util.internal.SocketUtil;
|
|
||||||
|
|
||||||
class OioClientSocketPipelineSink extends AbstractOioChannelSink {
|
class OioClientSocketPipelineSink extends AbstractOioChannelSink {
|
||||||
|
|
||||||
@ -104,8 +102,6 @@ class OioClientSocketPipelineSink extends AbstractOioChannelSink {
|
|||||||
future.addListener(ChannelFutureListener.CLOSE_ON_FAILURE);
|
future.addListener(ChannelFutureListener.CLOSE_ON_FAILURE);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
remoteAddress = SocketUtil.stripZoneId((InetSocketAddress) remoteAddress);
|
|
||||||
|
|
||||||
channel.socket.connect(
|
channel.socket.connect(
|
||||||
remoteAddress, channel.getConfig().getConnectTimeoutMillis());
|
remoteAddress, channel.getConfig().getConnectTimeoutMillis());
|
||||||
connected = true;
|
connected = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user