Fix 'reached end of stream for null'

This commit is contained in:
fullwall 2013-07-31 14:23:08 +08:00
parent aa353d44e6
commit 2603c3ae2c

View File

@ -14,8 +14,8 @@ public class EmptySocket extends Socket {
@Override @Override
public OutputStream getOutputStream() { public OutputStream getOutputStream() {
return new ByteArrayOutputStream(1); return new ByteArrayOutputStream(10);
} }
private static final byte[] EMPTY = new byte[0]; private static final byte[] EMPTY = new byte[20];
} }