Norman Maurer
9f01374169
Ensure localAddress / remoteAddress are still accessible in channelInactive / handlerRemoved ( #346 )
...
Motivation:
Often its useful to be still be able to access the local / remote address during channelInactive / handlerRemoved callbacks to for example log it. We should ensure its still accessible during it.
Modifications:
- Fallback to slow-path in ChannelHandlerContext.localAddress0 / remoteAddress0 if fast-path fails to try accessing the address via the cache.
- Clear cached addresses after all callbacks are run.
- Add unit test.
Result:
Be able to access addresses while handlers are notified.
2018-04-23 12:51:01 +02:00
..
2018-02-08 11:21:55 +00:00
2018-04-16 19:36:47 +02:00
2018-04-23 12:51:01 +02:00
2018-04-18 17:56:44 +01:00
2018-04-19 09:58:39 +02:00
2018-04-09 15:11:01 +02:00
2018-04-09 15:11:01 +02:00
2018-04-17 13:07:15 +01:00
2018-04-19 09:58:39 +02:00
2018-03-19 19:38:24 +01:00
2018-04-16 20:57:03 +02:00
2018-03-21 11:15:12 +01:00
2018-03-02 15:40:52 +09:00
2018-04-23 12:51:01 +02:00
2018-04-23 11:18:57 +01:00
2018-04-04 12:57:31 +01:00
2018-04-03 11:44:14 +01:00
2018-04-19 09:58:39 +02:00
2018-04-19 09:58:39 +02:00
2018-04-16 19:36:47 +02:00
2018-04-09 17:42:35 +01:00
2018-03-02 15:40:52 +09:00
2018-03-12 13:27:42 +01:00
2018-04-03 11:44:14 +01:00
2018-03-28 10:49:05 +02:00
2018-03-21 01:14:47 +09:00
2018-03-28 17:06:05 +01:00
2018-03-03 09:04:57 +09:00
2018-04-18 18:56:00 +01:00
2018-03-19 14:43:38 +01:00
2018-04-16 19:36:47 +02:00
2018-04-03 11:44:14 +01:00
2018-04-03 11:44:14 +01:00
2018-04-18 10:04:12 +01:00
2018-04-18 17:56:44 +01:00
2018-04-03 11:44:14 +01:00
2018-04-13 15:20:47 +02:00
2018-03-28 17:06:05 +01:00
2018-03-02 15:40:52 +09:00
2018-03-02 15:40:52 +09:00
2018-02-28 09:46:29 +00:00
2018-04-20 16:19:10 +01:00
2018-04-19 09:58:39 +02:00
2018-04-19 09:58:39 +02:00
2018-03-19 14:43:38 +01:00
2018-04-19 09:58:39 +02:00
2018-03-28 10:49:05 +02:00
2018-04-03 11:44:14 +01:00
2018-03-03 10:16:39 +09:00
2018-03-16 23:53:16 +09:00