Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Re: BufferedReader.read() blocks,when checking if there's any input for some URLs

    I have a custom program I use to read from URLs.

    When I copied your code and added print outs of some of the fields of the URLConnection object, it executed without blocking.
  2. Re: BufferedReader.read() blocks,when checking if there's any input for some URLs

    Read the API doc for the class and see what methods you can use to determine is there is more data to be read.
    When I try to read from that URL I get:
  3. Re: BufferedReader.read() blocks,when checking if there's any input for some URLs

    You can test the object to see if there are bytes available to be read before calling read().
  4. Re: BufferedReader.read() blocks,when checking if there's any input for some URLs

    Where are you using the read() method? I only see the readLine() method which will wait/block until it gets the end of a line character.
Results 1 to 4 of 4