wsky / top-link

embedded duplex multi-channel endpoint and connection management for c#/java/...
6 stars 1 forks source link

only the channel that connect message success can add to endpointProxy #82

Closed wsky closed 11 years ago

wsky commented 11 years ago
ClientChannelWrapper channel = new ClientChannelWrapper(
                                // set default version on this channel
                                this.channelSelector.getChannel(uri), msg.protocolVersion);
                channel.setChannelHandler(this.channelHandler);
                e.add(channel);
                // send connect
                this.sendAndWait(e, channel, msg, TIMOUT);
                return e;

e.add(channel) should be called after connect message sent