Bug 44411

GemStone/S 64 Bit

3.2.1, 3.2, 3.1.0.6, 3.1.0.5, 3.1.0.4, 3.1.0.3, 3.1.0.2, 3.1.0.1, 3.1, 3.0.1, 3.0, 2.4.8, 2.4.7, 2.4.6, 2.4.5.1, 2.4.5, 2.4.4.8, 2.4.4.7, 2.4.4.6, 2.4.4.5, 2.4.4.4, 2.4.4.3, 2.4.x, 2.3.1.6, 2.2.6, 2.2.5.4, 2.x

3.2.2

GsSocket >> isConnected, peerAddress, and peerPort signal exceptions on error

The method comments for GsSocket instance methods #isConnected, #peerPort, and #peerAddress state that they return nil if an error occurs.  These methods incorrectly signal an error if an error occurs, rather than returning nil.

In v3.2.2 and later, if an error occurs than #isConnected returns false, and #peerAddress and #peerPort, return nil.

Workaround

Use an exception handler.


Last updated: 7/29/14