[Box Backup-dev] Timeouts

Ben Summers boxbackup-dev@fluffy.co.uk
Thu, 7 Dec 2006 12:22:47 +0000


On Thu, 7 Dec 2006, Martin Ebourne wrote:

> Ben Summers <ben@fluffy.co.uk> wrote:
>
>> Is it possible to just set really long timeouts on the underlying =20
>> SSL =10/ TCP/IP sockets?
>>
>
> Yes and no. Portability and compatibility is the problem here. On  
> some =20
> systems you can (often the default is already 2hrs or so), don't  
> know =20
> how to do it in a portable manner.

(and Chris said stuff about OpenSSL)


Hmmm. A better plan would seem to be redesigning things to cope  
better with unreliable connections.

1) Gather all changes to send before connecting in the first place  
(from file system notifications or a slow scanning operation)

2) Reconnect and continue when the connection fails.

Ben