You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Michael Moser (JIRA)" <ji...@apache.org> on 2014/12/18 16:22:14 UTC
[jira] [Created] (NIFI-181) ListenHTTP Max Data rate doesn't work
due to bug in LeakyBucketStreamThrottler
Michael Moser created NIFI-181:
----------------------------------
Summary: ListenHTTP Max Data rate doesn't work due to bug in LeakyBucketStreamThrottler
Key: NIFI-181
URL: https://issues.apache.org/jira/browse/NIFI-181
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Affects Versions: 0.0.1
Reporter: Michael Moser
Priority: Minor
ListenHTTP throws ArrayIndexOutOfBoundsException when the property Max Data to Receive per Second is set. This was traced to a bug in LeakyBucketStreamThrottler.
commons/nifi-stream-utils/src/main/java/org/apache/nifi/io/LeakyBucketStreamThrottler.java
Line 114:
public int read(byte[] b, int off, int len) throws IOException {
+ if ( len < 0 ) {
+ throw new IllegalArgumentException();
+ }
+ if ( len == 0 ) {
+ return 0;
+ }
baos.reset();
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)