larger buffer for h2g connection responses

This commit is contained in:
Andreas Schildbach 2012-08-16 17:04:45 +02:00
parent caebf43b2e
commit 4d140a10a4

View file

@ -1517,7 +1517,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
try
{
is = new LittleEndianDataInputStream(new BufferedInputStream(ParserUtils.scrapeInputStream(uri)));
is.mark(32768);
is.mark(256 * 1024);
// quick check of status
final int version = is.readShortReverse();