Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.1.0, 1.0.4, 1.1.1
-
None
Description
The following JavaDoc is somewhat incorrect and doesn't contain all the information about each event types.
/**
- Invoked when the session is created. Initialize default socket
- parameters and user-defined attributes here.
*/
void sessionCreated(IoSession session) throws Exception;
/**
- Invoked when the connection is opened. This method is not invoked if the
- transport type is UDP.
*/
void sessionOpened(IoSession session) throws Exception;
/**
- Invoked when the connection is closed. This method is not invoked if the
- transport type is UDP.
*/
void sessionClosed(IoSession session) throws Exception;
/**
- Invoked when the connection is idle. Refer to
{@link IdleStatus}
. This
- method is not invoked if the transport type is UDP.
*/
void sessionIdle(IoSession session, IdleStatus status) throws Exception;
- sessionOpened and sessionClosed are invoked for UDP since 1.0.
- There's a known bug that sessionIdle is not invoked for UDP. We need to explicitly explain that it will be fixed in 2.0.
- It must be explicitly specified that sessionCreated runs in the same thread with the I/O processor thread.