simon-svn: putty: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sun May 13 16:59:26 BST 2012


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       9528
Date:           2012-05-13 16:59:26 +0100 (Sun, 13 May 2012)

Log message (16 lines):
Patch from Robert de Bath to substantially simplify timing.c.

The previous platform-dependent ifdefs, switching between a system
which tried to cope with spurious callbacks (which UI'd observed on
Windows) and one which tried to cope with system clock jumps (which
can happen on Unix, if you use gettimeofday) have been completely
removed, and replaced with a much simpler approach which just copes
with system clock jumps by triggering any timers immediately.

None of the resulting effects should be catastrophic (the worst thing
might be the waste of CPU in a spurious rekey, but as long as the
system clock isn't jumping around _all_ the time that's hardly
critical) and in any case the Unix port has had a long-standing oddity
involving occasional lockups if pterm or PuTTY runs for too long,
which hopefully this should replace with a much less bad failure mode.
And the code is much simpler, which is not to be sneezed at.

Modified files:
U   putty/timing.c
U   putty/unix/unix.h
U   putty/unix/uxmisc.c
U   putty/unix/uxplink.c
U   putty/unix/uxsftp.c
U   putty/windows/winstuff.h

Links:
http://svn.tartarus.org/sgt/?rev=9528&view=rev
http://svn.tartarus.org/sgt/putty/timing.c?rev=9528&r1=9527&r2=9528
http://svn.tartarus.org/sgt/putty/unix/unix.h?rev=9528&r1=9527&r2=9528
http://svn.tartarus.org/sgt/putty/unix/uxmisc.c?rev=9528&r1=9527&r2=9528
http://svn.tartarus.org/sgt/putty/unix/uxplink.c?rev=9528&r1=9527&r2=9528
http://svn.tartarus.org/sgt/putty/unix/uxsftp.c?rev=9528&r1=9527&r2=9528
http://svn.tartarus.org/sgt/putty/windows/winstuff.h?rev=9528&r1=9527&r2=9528



More information about the tartarus-commits mailing list