NIFI-5065: HTTP Site-to-Site fails sending data more than 2GB at once

Int variables got overflown.

This closes #5065

Signed-off-by: Mike Thomsen <mikerthomsen@gmail.com>
This commit is contained in:
Koji Kawamura 2018-04-10 17:15:30 +09:00 committed by Mike Thomsen
parent 274ed46d92
commit b2fae5f56e
1 changed files with 2 additions and 2 deletions

View File

@ -773,8 +773,8 @@ public class SiteToSiteRestApiClient implements Closeable {
private final ByteBuffer buffer = ByteBuffer.allocate(DATA_PACKET_CHANNEL_READ_BUFFER_SIZE);
private int totalRead = 0;
private int totalProduced = 0;
private long totalRead = 0;
private long totalProduced = 0;
private boolean requestHasBeenReset = false;