user705414
user705414

Reputation: 21200

How to set the read timeout for InputStream.read?

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

How to set the read timeout?

Upvotes: 0

Views: 1899

Answers (1)

Sunil
Sunil

Reputation: 1248

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

Upvotes: 2

Related Questions