0

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

How to set the read timeout?

mre
  • 42,270
  • 33
  • 119
  • 166
user705414
  • 19,158
  • 37
  • 109
  • 154

1 Answers1

2

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

Sunil
  • 1,190
  • 3
  • 12
  • 21