Commit Graph
23 Commits
Author SHA1 Message Date
Norman Maurer 8f1ad37edd Use camel case for ChannelOption factory values and add docs 2017-12-20 14:18:07 +01:00
Johannes Weiss dfd25bf576 refactor Channel initialisation & *Bootstrap docs 2017-12-13 15:42:54 +00:00
Johannes Weiß 94e1af5452 compile warning-free on Swift 4.1 2017-12-18 15:37:57 +00:00
Johannes Weiss 64a1c2feb8 Channel writes: unit tests & lots of fixes 2017-12-11 12:20:46 +00:00
Johannes Weiß 06f9b1d63b merge ConcurrencyHelpers 2017-11-21 18:32:33 +00:00
Johannes Weiß 33fe401322 rename Future/Promise to EventLoopFuture/EventLoopPromise 2017-11-21 17:41:36 +00:00
Johannes Weiss 09b8925591 make ChannelHandlerCtx operations not crash if channel is already closed 2017-11-17 14:57:25 +00:00
Norman Maurer f369a17d42 Fix warnings that are cased by using try for functions that not throw. Leftover from 4a315c9e9d12345e70b838cdfea54ddb0b191da8 2017-11-16 19:39:16 +01:00
Johannes Weiß 31cd14eaad fix inEventLoop race and makes TSan happy 2017-11-10 14:56:33 -08:00
Johannes Weiss f6343496c3 add another test for a very large number of buffered writes 2017-11-11 00:10:23 -08:00
Johannes Weiß 6173bee782 Split IOData into NIOAny & IOData (ByteBuffer | FileRegion) 2017-10-25 19:31:27 +01:00
Johannes Weiss 0b265368a1 use the new Swift 4 String APIs for encoding/decoding Strings 2017-10-10 17:12:02 +01:00
Johannes Weiss 1adb581f59 remove more Foundation imports 2017-10-10 16:25:43 +01:00
Cory Benfield e2722732b7 Allow write during channelActive.
* Test that we can write during channelActive

* Flush after connect complete
2017-09-27 16:46:15 +01:00
Cory Benfield 35dd5fce48 Flush immediately without pending writes.
* Add failing test for flush on empty

* Succeed flushes immediately when possible
2017-09-27 16:24:43 +01:00
Johannes Weiß 8e06697362 fix EventLoop shutdown by introducing shutdownGracefully 2017-09-20 17:15:06 +01:00
Cory Benfield 007feec636 Add Unix domain socket support part 2: Electric Boogaloo
* support UNIX Domain Sockets

* Add test for connect: with UDS path

* Add UDS-special connect method
2017-09-21 15:26:37 +01:00
Johannes Weiss da905d17f8 channelInactive should fire before channelUnregistered 2017-09-18 14:42:35 +01:00
Johannes Weiß 3ea35268d4 fully close Channel before firing channelInactive/Unregistered 2017-09-15 18:29:20 +01:00
Cory Benfield 4c37eee3f8 Pipelines that write before they read must remain readable.
* Test that we can write and then read

* Correctly unregister writability
2017-09-15 16:41:52 +01:00
Cory Benfield 537a555877 Test that connect fires channelActive 2017-09-15 10:00:31 +01:00
Norman Maurer 67e2359a8f Use a random port for testing to ensure we not run into any conflicts 2017-08-12 10:05:43 +02:00
Norman Maurer a708c33008 Fix Channel.connect(...) and add unit test that shows using swift-nio to build clients / servers work 2017-08-08 13:52:40 +02:00