mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 17:39:49 +00:00
fixed retry mechanism
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@180 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
5812a35d67
commit
e856c0a270
1 changed files with 1 additions and 1 deletions
|
@ -66,13 +66,13 @@ public final class ParserUtils
|
|||
if (encoding == null)
|
||||
encoding = SCRAPE_DEFAULT_ENCODING;
|
||||
|
||||
final StringBuilder buffer = new StringBuilder(SCRAPE_INITIAL_CAPACITY);
|
||||
int tries = 3;
|
||||
|
||||
while (true)
|
||||
{
|
||||
try
|
||||
{
|
||||
final StringBuilder buffer = new StringBuilder(SCRAPE_INITIAL_CAPACITY);
|
||||
final HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
|
||||
|
||||
connection.setDoInput(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue