public SocketInputBuffer( final Socket socket, int buffersize, final HttpParams params) throws IOException { super(); if (socket == null) { throw new IllegalArgumentException("Socket may not be null"); } this.socket = socket; // BEGIN android-changed // Workaround for http://b/3514259. We take 'buffersize' as a hint in // the weakest sense, and always use an 8KiB heap buffer and leave the // kernel buffer size alone, trusting the system to have set a // network-appropriate default. init(socket.getInputStream(), 8192, params); // END android-changed }
public SocketInputBuffer( final Socket socket, int buffersize, final HttpParams params) throws IOException { super(); if (socket == null) { throw new IllegalArgumentException("Socket may not be null"); } this.socket = socket; // BEGIN android-changed // Workaround for http://b/3514259. We take 'buffersize' as a hint in // the weakest sense, and always use an 8KiB heap buffer and leave the // kernel buffer size alone, trusting the system to have set a // network-appropriate default. init(socket.getInputStream(), 8192, params); // END android-changed }
public SocketInputBuffer( final Socket socket, int buffersize, final HttpParams params) throws IOException { super(); if (socket == null) { throw new IllegalArgumentException("Socket may not be null"); } this.socket = socket; // BEGIN android-changed // Workaround for http://b/3514259. We take 'buffersize' as a hint in // the weakest sense, and always use an 8KiB heap buffer and leave the // kernel buffer size alone, trusting the system to have set a // network-appropriate default. init(socket.getInputStream(), 8192, params); // END android-changed }
public SocketInputBuffer( final Socket socket, int buffersize, final HttpParams params) throws IOException { super(); if (socket == null) { throw new IllegalArgumentException("Socket may not be null"); } this.socket = socket; // BEGIN android-changed // Workaround for http://b/3514259. We take 'buffersize' as a hint in // the weakest sense, and always use an 8KiB heap buffer and leave the // kernel buffer size alone, trusting the system to have set a // network-appropriate default. init(socket.getInputStream(), 8192, params); // END android-changed }
public SocketInputBuffer( final Socket socket, int buffersize, final HttpParams params) throws IOException { super(); if (socket == null) { throw new IllegalArgumentException("Socket may not be null"); } this.socket = socket; // BEGIN android-changed // Workaround for http://b/3514259. We take 'buffersize' as a hint in // the weakest sense, and always use an 8KiB heap buffer and leave the // kernel buffer size alone, trusting the system to have set a // network-appropriate default. init(socket.getInputStream(), 8192, params); // END android-changed }
/** * Creates an instance of this class. * * @param socket the socket to read data from. * @param buffersize the size of the internal buffer. If this number is less * than {@code 0} it is set to the value of * {@link Socket#getReceiveBufferSize()}. If resultant number is less * than {@code 1024} it is set to {@code 1024}. * @param params HTTP parameters. */ public SocketInputBuffer( final Socket socket, final int buffersize, final HttpParams params) throws IOException { super(); Args.notNull(socket, "Socket"); this.socket = socket; this.eof = false; int n = buffersize; if (n < 0) { n = socket.getReceiveBufferSize(); } if (n < 1024) { n = 1024; } init(socket.getInputStream(), n, params); }
/** * Creates an instance of this class. * * @param socket the socket to read data from. * @param buffersize the size of the internal buffer. If this number is less * than {@code 0} it is set to the value of * {@link Socket#getReceiveBufferSize()}. If resultant number is less * than {@code 1024} it is set to {@code 1024}. * @param params HTTP parameters. */ public SocketInputBuffer( final Socket socket, final int buffersize, final HttpParams params) throws IOException { super(); Args.notNull(socket, "Socket"); this.socket = socket; this.eof = false; int n = buffersize; if (n < 0) { n = socket.getReceiveBufferSize(); } if (n < 1024) { n = 1024; } init(socket.getInputStream(), n, params); }
/** * Creates an instance of this class. * * @param socket the socket to read data from. * @param buffersize the size of the internal buffer. If this number is less * than {@code 0} it is set to the value of * {@link Socket#getReceiveBufferSize()}. If resultant number is less * than {@code 1024} it is set to {@code 1024}. * @param params HTTP parameters. */ public SocketInputBuffer( final Socket socket, final int buffersize, final HttpParams params) throws IOException { super(); Args.notNull(socket, "Socket"); this.socket = socket; this.eof = false; int n = buffersize; if (n < 0) { n = socket.getReceiveBufferSize(); } if (n < 1024) { n = 1024; } init(socket.getInputStream(), n, params); }
/** * Creates an instance of this class. * * @param socket the socket to read data from. * @param buffersize the size of the internal buffer. If this number is less * than {@code 0} it is set to the value of * {@link Socket#getReceiveBufferSize()}. If resultant number is less * than {@code 1024} it is set to {@code 1024}. * @param params HTTP parameters. */ public SocketInputBuffer( final Socket socket, final int buffersize, final HttpParams params) throws IOException { super(); Args.notNull(socket, "Socket"); this.socket = socket; this.eof = false; int n = buffersize; if (n < 0) { n = socket.getReceiveBufferSize(); } if (n < 1024) { n = 1024; } init(socket.getInputStream(), n, params); }
/** * Creates an instance of this class. * * @param socket the socket to read data from. * @param buffersize the size of the internal buffer. If this number is less * than <code>0</code> it is set to the value of * {@link Socket#getReceiveBufferSize()}. If resultant number is less * than <code>1024</code> it is set to <code>1024</code>. * @param params HTTP parameters. */ public SocketInputBuffer( final Socket socket, final int buffersize, final HttpParams params) throws IOException { super(); Args.notNull(socket, "Socket"); this.socket = socket; this.eof = false; int n = buffersize; if (n < 0) { n = socket.getReceiveBufferSize(); } if (n < 1024) { n = 1024; } init(socket.getInputStream(), n, params); }