0

If the server never send EOF, will InputStream.read hang?

How to set the read timeout?

mre
  • 43,520
  • 33
  • 120
  • 170
user705414
  • 20,472
  • 39
  • 112
  • 155

1 Answers1

2

How about setting a socket timeout. It sets the timeout on all the read operations on that socket

Sunil
  • 1,238
  • 3
  • 13
  • 21