PuTTY wish remove-statics

This is a mirror. Follow this link to find the primary PuTTY web site.

Home | FAQ | Feedback | Licence | Updates | Mirrors | Keys | Links | Team
Download: Stable · Pre-release · Snapshot | Docs | Privacy | Changes | Wishlist

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: dll-frontend multiple-connections port-mac reuse-windows
priority: low: We aren't sure whether to fix this or not.
fixed-in: 2003-01-15 f6cc852c5d1c215489ccf364e581cf40fe69d9fc (0.54)

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.)


If you want to comment on this web site, see the Feedback page.
Audit trail for this wish.
(last revision of this bug record was at 2016-12-27 11:40:22 +0000)