Files
swift-nio/Sources/NIO
Norman Maurer edfbe50fc8 Ensure we always update the promise before calling fire* methods and also udate channel state before. (#181)
Motivation:

We not always ensure correct ordering which made it quite hard to reason about things. We should always first notify the promise before we call the fire* method that belongs to the event. Beside this we sometimes fired events or notified promised before correctly update the active state / addresses of a Channel which could result in unexpected results when query the Channel during execution of callbacks and handlers.

Modifications:

- Ensure we always notify promise first
- Always correctly update channel state before notify promise
- Add test to verify notification order.

Result:

Correct ordering of events which makes things easier to reason about and which follows what netty is doing.
2018-03-19 20:52:31 +09:00
..
2018-03-15 22:11:46 +09:00
2018-03-15 22:11:46 +09:00
2018-03-15 22:11:46 +09:00
2018-02-08 13:12:30 +00:00
2018-03-15 22:11:46 +09:00
2018-03-02 15:40:52 +09:00
2018-02-20 15:51:35 +00:00