Re: [firebird-support] Service restore from stdin

2017-10-05 Thread Pavel Cisar pci...@ibphoenix.cz [firebird-support]
Hi, Dne 4.10.2017 v 19:17 Dimitry Sibiryakov s...@ibphoenix.com [firebird-support] napsal(a): > > Another question: is there a way to abort restore process which would > cause server to > drop half-restored database? For example, if I have a problem of reading > backup file. > Or in

Re: [firebird-support] Service restore from stdin

2017-10-04 Thread Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
04.10.2017 18:28, Pavel Cisar pci...@ibphoenix.cz [firebird-support] wrote: > Nope, without requesting isc_info_svc_line output you can't know when > service actually finished, so you may close the service at will. If you > close it *after* its finished then everything is ok, but if not, you >

Re: [firebird-support] Service restore from stdin

2017-10-04 Thread Pavel Cisar pci...@ibphoenix.cz [firebird-support]
Dne 4.10.2017 v 16:24 Dimitry Sibiryakov s...@ibphoenix.com [firebird-support] napsal(a): > 04.10.2017 11:42, Pavel Cisar pci...@ibphoenix.cz [firebird-support] wrote: >> Until stdin is fully transmited service may need another >> chunk, but reply to application is blocked until stdout buffer

Re: [firebird-support] Service restore from stdin

2017-10-04 Thread Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
04.10.2017 16:24, Dimitry Sibiryakov wrote: >   I.e. server just wasting network throughput requesting no data from client > as if > request timeout is by default set to zero instead of infinity. Oops, I was wrong: even explicitly set timeout don't make service to wait before sending

Re: [firebird-support] Service restore from stdin

2017-10-04 Thread Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
04.10.2017 11:42, Pavel Cisar pci...@ibphoenix.cz [firebird-support] wrote: > Until stdin is fully transmited service may need another > chunk, but reply to application is blocked until stdout buffer (eof > request) is full, so everything gets stuck (service will not ask for > further input

Re: [firebird-support] Service restore from stdin

2017-10-04 Thread Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
04.10.2017 11:42, Pavel Cisar pci...@ibphoenix.cz [firebird-support] wrote: > You can't use isc_info_svc_line for sending backup file to the service. But that's what fbsvcmgr does. > The right token is isc_info_svc_stdin. No, it is only for getting buffer size from server. I have no idea

Re: [firebird-support] Service restore from stdin

2017-10-04 Thread Pavel Cisar pci...@ibphoenix.cz [firebird-support]
Hi, You can't use isc_info_svc_line for sending backup file to the service. The right token is isc_info_svc_stdin. However, you have to send isc_info_svc_line request along with it to get output from service to detect that restore finished (value zero for reply to isc_info_svc_stdin is just a

Re: [Graymail] [firebird-support] Service restore from stdin

2017-10-03 Thread Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
03.10.2017 16:43, 'Sabbagh, Nariman' nariman.sabb...@delta.com [firebird-support] wrote: > Does anybody know what the server name is I used 'localhost' but AFAIU it should be irrelevant. -- WBR, SD.

RE: [Graymail] [firebird-support] Service restore from stdin

2017-10-03 Thread 'Sabbagh, Nariman' nariman.sabb...@delta.com [firebird-support]
Does anybody know what the server name is -Original Message- From: firebird-support@yahoogroups.com [mailto:firebird-support@yahoogroups.com] Sent: Tuesday, October 03, 2017 10:31 AM To: firebird-support@yahoogroups.com Subject: [Graymail] [firebird-support] Service restore from stdin

[firebird-support] Service restore from stdin

2017-10-03 Thread Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
Hello. When I use isc_info_svc_line for sending a piece of backup to server, everything works well. But when I use just replace isc_info_svc_line with isc_info_svc_to_eof, no errors is produced, but database is not restored. Do I something wrong or it is a bug (incomplete