Next round for async channel api support a.k.a nio2. See See #396

This commit is contained in:
Norman Maurer 2012-06-14 21:02:47 +02:00
parent 032912d938
commit f8ef5d5d78
133 changed files with 655 additions and 40 deletions

View File

View File

@ -167,13 +167,6 @@ public class ServerBootstrap {
return future;
}
try {
channel.config().setOptions(parentOptions);
} catch (Exception e) {
future.setFailure(e);
return future;
}
ChannelPipeline p = channel.pipeline();
if (handler != null) {
p.addLast(handler);
@ -185,6 +178,12 @@ public class ServerBootstrap {
future.setFailure(f.cause());
return future;
}
try {
channel.config().setOptions(parentOptions);
} catch (Exception e) {
future.setFailure(e);
return future;
}
if (!channel.isOpen()) {
// Registration was successful but the channel was closed due to some failure in

View File

View File

View File

0
transport/src/main/java/io/netty/channel/Channel.java Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

Some files were not shown because too many files have changed in this diff Show More