What is the functionality of setSoTimeout and how it works?
Does it mean that I’m blocking reading any input from the Server/Client for this socket for 2000 millisecond and after this time the socket is ready to read data? No, it means that if no data arrives within 2000ms a SocketTimeoutException will be thrown. What does it mean timeout expire? It means the 2000ms (in … Read more