PuTTY wish remove-statics

This is a mirror. The primary PuTTY web site can be found here.

Home | Licence | FAQ | Docs | Download | Keys | Links
Mirrors | Updates | Feedback | Changes | Wishlist | Team

summary: Remove static variables to allow multiple or sequential connections
class: wish: This is a request for an enhancement.
difficulty: tricky: Needs many tuits.
blocks: reuse-windows port-mac dll-frontend multiple-connections
priority: low: We aren't sure whether to fix this or not.
fixed-in: 2003-01-15 (0.54) (0.55) (0.56) (0.57) (0.58) (0.59) (0.60)

For several reasons it would be handy to be able to run multiple connections in a single process. This will require removing most (or all) of PuTTY's static and global variables, and replacing them with fields in dynamically allocated structures.

This is a code cleanup which we should probably do anyway.

SGT, 2003-01-14: After much pain and upheaval, I think this is now as done as it'll ever be. The Unicode module was particularly unpleasant (and wants a substantial rewrite really), and there are a few remaining globals which are genuinely global (applying to all sessions) so I've left them in; but I think everything pertaining to a particular session is now non-global, at least in the portable parts of the code. (The Windows front end still has many static variables, but they will probably never go away.)

Audit trail for this wish.


If you want to comment on this web site, see the Feedback page.
(last revision of this bug record was at 2004-11-16 15:27:00 +0000)