04.10.2017 11:42, Pavel Cisar [email protected] [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 because there is not enough output to send the request).
Actually I see the contrary: output buffer is empty, but no request for
input is sent.
Output from my test program which send { isc_info_svc_stdin, isc_info_svc_line
} looks
like that:
> query piece 0
> isc_info_svc_stdin 262144
> isc_info_svc_line 0:
> isc_info_data_not_ready
> query piece 512
> isc_info_svc_stdin 262144
> isc_info_svc_line 0:
> isc_info_data_not_ready
Notice that it always gets isc_info_data_not_ready.
But if I change request to {isc_info_svc_stdin } (because I know that no
data is ever
returned), I get this:
> query piece 0
> isc_info_svc_stdin 0
> isc_info_end
........ about 40 times the same ..........
> query piece 0
> isc_info_svc_stdin 0
> isc_info_end
> query piece 0
> isc_info_svc_stdin 262144
> isc_info_end
> query piece 512
> isc_info_svc_stdin 262144
> isc_info_end
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.
Is it intended behavior?
Besides, my whole test backup size is 512 bytes, but server asks for more
data even
when got it all.
What else must I send to it?
Now I forcefully disconnect after sending of whole backup and it seems to
work. But is
it right way?
--
WBR, SD.
------------------------------------
------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Visit http://www.firebirdsql.org and click the Documentation item
on the main (top) menu. Try FAQ and other links from the left-side menu there.
Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
------------------------------------
Yahoo Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-support/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/firebird-support/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo Groups is subject to:
https://info.yahoo.com/legal/us/yahoo/utos/terms/