[Box Backup] TLSReadFailed

Chris Wilson boxbackup@fluffy.co.uk
Sat, 12 Mar 2005 18:43:45 +0000 (GMT)


Hi Ben and all,

I'm currently working on implementing restore functionality in Boxi, and 
hope to have it ready for a new release within a week or so. However, I 
have come across some interesting issues on which I would like to ask 
your help.

Firstly, I'm not sure that I understand the difference between the Get and 
Restore commands in bbackupquery, but it appears that Get only works on 
files, and Restore only works on directories? If so, could they not be 
combined into a single command that works on either files or directories?

Secondly, if I try to Restore a file (not a directory) by object ID using 
bbackupquery, then the program aborts with a TLSReadFailed error and no 
further information. An exception object seems to have been sent from the 
server (a BadDirectoryFormat exception) but bbackupquery ignored it and 
threw a protocol error. Is this worth fixing? It seems like a bug to me.

Thirdly, if the server throws any kind of exception, which results in a 
TLSReadFailed on the client, the stream becomes unusable after that point 
and must be closed. This is rather annoying for interactive applications. 
Would it be hard to fix the client to handle exceptions properly and keep 
the stream alive?

Thanks very much for your help!

Cheers, Chris.
-- 
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |