Subject Re: [Firebird-Java] Are there plans for streaming backup support?
Author Ivan Arabadzhiev
It sure does ... because up to the previous commit, the server would keep responding with "I need 0 bytes" till the hw gave up ... :) Unless I hit some bizarre issue with strange size buffers, I'm sticking with sending 1 byte less than requested for any 2+ byte request - it should ensure the client/server never ever EOF at the same time.

2016-02-17 14:07 GMT+02:00 Mark Rotteveel mark@... [Firebird-Java] <>:

On 17-2-2016 12:52, Ivan Arabadzhiev intelrullz@...
[Firebird-Java] wrote:
> Got it, will do. Nice catch about the verbose output :) As for the read
> ... I did see (and fix) what's wrong - if the buffer-size is just right,
> I never really read() past the end of the stream so I never get
> -1/exception ... "of all the things I've lost, I miss my mind the most".
> I hope I'll be done with the cosmetic stuff by Saturday.

Yes, but unless you have received a -1, you aren't sure if you actually
finished reading :) Unless maybe Firebird itself uses metadata from the
backupfile to determine when it is done reading and doesn't ask for more

Mark Rotteveel