It seems unnecessary to need to implement logic to wait 500ms for a data packet when the Java Socket implementation provides setSoTimeout for a similar purpose.
Could the implementation be simplified if setSoTimeout were used rather than blocking with Thread.sleep in user code?
It seems unnecessary to need to implement logic to wait 500ms for a data packet when the Java
Socket
implementation providessetSoTimeout
for a similar purpose.Could the implementation be simplified if
setSoTimeout
were used rather than blocking withThread.sleep
in user code?