Dear all,<br><br> I wrote a simple example Client/Server application which Client will always try to re-connect to Server if connections is broken. And I saw the below problem:<br> - Step 1: Run Server app to listen on localhost:port5000 -> OK, port 5000 is LISTENING.<br>
- Step 2: Run Client app and connect to localhost:port 5000 -> exceptionCaught(): "ConnectException: No further information" then channelClosed() is called.<br> - Step 3: Since connect failed, Client app try to re-connect -> successful, channelConnected() is called. Port 5000 is ESTABLISHED.<br>
It's too strange, because sometimes it occurs, sometimes not (connected immediately).<br> Does anyone face this issue and find out the reason? Why Client cannot connect to Server at first time but later?<br> I guess the port is not cleaned completely after each my test running. Is is correct?<br>
<br>Thanks for any contributions,<br>Best Regards,<br>Hai Ngo<br>