Re: question about TcpServer inside ServerImpl.java

2016-09-06 Thread vkulichenko
Kevin, There is no need to listen to several ports. The range exists to make the start process more reliable - the node will choose one of the available ports if the first one can't be opened. Also this is useful when there are several nodes running within one physical box. -Val -- View this m

Re: question about TcpServer inside ServerImpl.java

2016-09-06 Thread Vladislav Pyatkov
Hi, This code finds first port from range, which do not busy. This may be helpful, if you use some instance of server with same configuration in one physical machine, in that case you will not know, which a port from range have not busy yet. On Tue, Sep 6, 2016 at 3:01 PM, Zhengqingzheng wrote:

question about TcpServer inside ServerImpl.java

2016-09-06 Thread Zhengqingzheng
Hi there, I am reading the socket communication part of the ignite source code. And I have a question regards to the socket server. Inside the ServerImpl.java, there is a private class called TcpServer which will start a socket on selected port. If portRange is used, which means Tcp Socket should