Skip to content

Commit

Permalink
On HTTP response success, schedule flush otherwise data could stay in…
Browse files Browse the repository at this point in the history
… the buffer
  • Loading branch information
tsegismont committed Jun 29, 2015
1 parent 5a2ed55 commit cc9f833
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ private void send(List<SingleMetric> metrics) {
}
buffer.reInsert(metrics);
metricInserted();
} else {
scheduleFlush();
}
});
req.putHeader(HttpHeaders.HOST, hostHeader);
Expand Down

0 comments on commit cc9f833

Please sign in to comment.