keedio / flume-ftp-source

FTP network server is source of events for Apache-flume
80 stars 61 forks source link

bytesRead shoud be > 0 #3

Closed lazaromedina closed 9 years ago

lazaromedina commented 9 years ago

Generally, read(byte[] input, int offset, int length) returns –1 on end of stream; but if length is 0, then it does not notice the end of stream and returns 0 instead

lazaromedina commented 9 years ago

Solved for both cases with byte > 0 image