Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ public void sendData() throws IOException {
int rc = urlConnection.getResponseCode();
if (rc != 200) {
String data = slurpErrors(urlConnection);
if(rc >= 400 && rc < 500){
// no chance to recover form these errors and has to drop the log messages in order to avoid dead loop.
errorReporter.logInfo("Send queue cleared - drop log messages due to http 4xx error.");
sendBuffer.setLength(0);
bufferExceeded = false;
}
throw new IOException("Got response code [" + rc + "] from server with data " + data);
}
} finally {
Expand Down