In message <[EMAIL PROTECTED]>, aha writes: >When I modified the code as following, it looks that >resolved it.
Ideally, you would implement your own SocketFactory, perhaps by subclassing DefaultSocketFactory, and use setSocketFactory. Otherwise, you have to modify the code every time there's a new Commons Net release. Since Commons Net 1.2 is using J2SE 1.2 as a compatibility baseline, the Socket API additions that should have been in java.net from the start haven't been incorporated. >To all: Is it correct??? Any comments are welcome! Yes, because the new Socket.connect method allows you to override the connection timeout. Previous to J2SE 1.4, you were stuck with the OS TCP stack default value and forced to use native code or play tricks with threads and timers to abort a connection attempt that was taking too long. daniel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
