Menu ▾ ▴

#2 Fix for static buffer thread safety bug (Bug ID 2537639)

open
nobody
None
5
2010-07-28
2010-07-28
Anonymous
No

This patch corrects the bug identified by http://sourceforge.net/tracker/?func=detail&aid=2537639&group_id=190927&atid=935323

The Buffer class incorrectly marks an internal variable as static when it is supposed to be an instance variable.

The bug report indicates that it was marked as 'final' in Java, and so I have replaced the static keyword (class variable) with the readonly keyword (assign once instance variable).

This patch fixes the thread safety issue where concurrent connections (by separate instances of the SshHost class) would experience connection and communication problems/corruption,

Discussion


Log in to post a comment.