#47 ChannelDirectTCPIP Doesn't Override Channel.connect(timeout)

open
nobody
None
5
2010-07-14
2010-07-14
vengeancex32
No

The implementation of ChannelDirectTCPIP overrides the connect() method of Channel but does not override connect(int timeout). If a user attempts to connect a ChannelDirectTCPIP instance using the connect(timeout) method, it will call the incorrect base Channel connect(timeout).

A simple fix (which does not support timeouts) is to override connect(int timeout) in ChannelDirectTCPIP and have it call connect(). Otherwise implement a full version of connect(timeout) and add support for timing out the connection.

Discussion