[Box Backup] Boxwin Client activity
Nick Knight
boxbackup@fluffy.co.uk
Thu, 21 Apr 2005 18:19:40 +0100
Hello Per,
Done that - that is the fix to make sure the timer works correctly, but
there is also an issue that ssl will timeout after about 300 seconds
(i.e. if I make my itimer greater than this) then it will drop its
connection. I need the fix so that on larger files the timeout can be
greater than 300 seconds.
-----Original Message-----
From: boxbackup-admin@fluffy.co.uk [mailto:boxbackup-admin@fluffy.co.uk]
On Behalf Of Per Thomsen
Sent: 21 April 2005 17:09
To: boxbackup@fluffy.co.uk
Subject: Re: [Box Backup] Boxwin Client activity
On 4/21/05 4:06 AM, Nick Knight wrote:
>Oh I see, I found a session timeout but that is different, perhaps
there
>is a hack in the library some how.
>
>Perhaps you could send me your patch to include in the win32 version?
>
>Why does this not exist on the Unix variants though?
> =20
>
That's because the setitimer() call works with the ITIMER_VIRTUAL type=20
of timer on Unix (man setitimer, again on Unix), but that doesn't work=20
on cygwin, and probably not on Windows either.
To quote Gary:
>Namely, BackupStoreFileDiff.cpp uses setitimer() to get a signal when a
>file diff should terminate, due to MaximumDiffingTime in bbackupd.conf.
>Cygwin does not support ITIMER_VIRTUAL for setitimer() (returns EINVAL,
>not sure how Win32 native handles this), so the signal is never
>received (the error is ignored silently with a TRACE()). Effectively, a
>file diff continues for as long as it needs, and possibly longer than
>an SSL connection/session timeout, thus resulting in an error message
>mentioned before in this thread.
>
>To fix under Cygwin, patch BackupStoreFileDiff.cpp to use ITIMER_REAL
>in setitimer(), and SIGALRM in signal().
> =20
>
Thanks,
Per
--=20
Per Reedtz Thomsen | Reedtz Consulting, LLC | F: 209 883 4119
V: 209 883 4102 | pthomsen@reedtz.com | C: 209 996 9561
GPG ID: 1209784F | Yahoo! Chat: pthomsen | AIM: pthomsen
_______________________________________________
boxbackup mailing list
boxbackup@fluffy.co.uk
http://lists.warhead.org.uk/mailman/listinfo/boxbackup