Hello Alexey, This is actually not real code but just extracted part for test. That's why it looks incorrect. And I've already captured infinite loop because of 0 being returned. And imagine use case when I need to read until end of stream. So question is why 0 is returned but not -1 (according to API).
2016-02-15 21:10 GMT+02:00 Dmitriy Setrakyan <[email protected]>: > Alexey, is this something that Ignite could prevent automatically? > > On Mon, Feb 15, 2016 at 10:17 AM, Alexey Goncharuk < > [email protected]> wrote: > >> A little correction: in this particular case inputStream does return 0 >> which leads to an infinite loop, however, generally this may be not the >> case, so the implementation should not read beyond object boundary anyways. >> > >
