mirror of https://github.com/apache/lucene.git
LUCENE-5599: HttpClientBase did not properly delegate to wrapped InputStream
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1587930 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9804d3f853
commit
3b92bf8f66
|
@ -83,6 +83,9 @@ Optimizations
|
|||
|
||||
* LUCENE-5603: hunspell stemmer more efficiently strips prefixes
|
||||
and suffixes. (Robert Muir)
|
||||
|
||||
* LUCENE-5599: HttpReplicator did not properly delegate bulk read() to wrapped
|
||||
InputStream. (Christoph Kaser via Shai Erera)
|
||||
|
||||
======================= Lucene 4.8.0 =======================
|
||||
|
||||
|
|
|
@ -221,13 +221,13 @@ public abstract class HttpClientBase implements Closeable {
|
|||
}
|
||||
@Override
|
||||
public int read(byte[] b) throws IOException {
|
||||
final int res = super.read(b);
|
||||
final int res = in.read(b);
|
||||
consume(res);
|
||||
return res;
|
||||
}
|
||||
@Override
|
||||
public int read(byte[] b, int off, int len) throws IOException {
|
||||
final int res = super.read(b, off, len);
|
||||
final int res = in.read(b, off, len);
|
||||
consume(res);
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue