netty5/transport/src
Norman Maurer 86b9656167 Correctly run pending tasks before flush and also remove incorrect assert.
Motivation:

We need to ensure we run all pending tasks before doing any flush in writeOutbound(...) to ensure all pending tasks are run first. Also we should remove the assert of the future and just add a listener to it so it is processed later if needed. This is true as a user may schedule a write for later execution.

Modifications:

- Remove assert of future in writeOutbound(...)
- Correctly run pending tasks before doing the flush and also before doing the close of the channel.
- Add unit tests to proof the defect is fixed.

Result:

Correclty handle the situation of delayed writes.
2016-03-29 14:30:23 +02:00
..
main/java/io/netty Correctly run pending tasks before flush and also remove incorrect assert. 2016-03-29 14:30:23 +02:00
test/java/io/netty Correctly run pending tasks before flush and also remove incorrect assert. 2016-03-29 14:30:23 +02:00