On Jan 26, 2006, at 6:00 PM, Trustin Lee wrote:
It's because IoSessionConfigs are shared by both IoSession implementations and IoServiceConfig implementations. For example, SocketAcceptorConfig.getSessionConfig() and SocketSessionImpl.getConfig() will return SocketSessionConfig. The former won't throw any exception until a new session is created because it just contains the default values of the new sessions. The latter will throw SocketException because it *really* modifies socket parameters. I just wrapped SocketException with RuntimeIOException because the SocketException is rarely thrown for convenience. Does this make sense?

Complete sense, thanks.. I didn't dig around enough to see the usage that did not throw exceptions.
-pete

--
(peter.royal|osi)@pobox.com - http://fotap.org/~osi

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to