users@grizzly.java.net

ByteBufferInputStream alternative ...

From: Alan Williamson <alan_at_blog-city.com>
Date: Thu, 12 Jun 2008 11:27:44 +0100

Now that i am officially onto 1.8 i am going over some of the compiler
warnings, namely this one detailing its deprecated.

   ByteBufferInputStream.setDefaultReadTimeout( 30000 );

I do this to ensure someone doesn't sit and opens up a socket and does
nothing. A real subtle DoS attack.

What's the new 1.8 way of achieving this?

-- 
Alan Williamson
  Try our free registrationless email/sms reminder
    http://yourli.st/
  b: http://alan.blog-city.com/