Cory Benfield
8b860d3009
Add SNI handler
2017-10-30 10:58:26 +00:00
Norman Maurer
9c7829a065
Port IdleStateHandler from Netty
2017-10-29 09:46:48 +01:00
Johannes Weiß
6173bee782
Split IOData into NIOAny & IOData (ByteBuffer | FileRegion)
2017-10-25 19:31:27 +01:00
Daniel Dunbar
87a47c88fc
Prefer let bindings in port binding parsing.
2017-10-27 23:49:33 -07:00
Cory Benfield
32c30074ea
Split client/server processing in OpenSSL
2017-10-24 16:41:23 +01:00
Johannes Weiss
e9c76088ac
ByteBuffer: avoid potential overflows for reading functions
2017-10-24 13:24:47 +01:00
Cory Benfield
25d57e8fab
Add Channel.isActive
2017-10-19 16:44:42 -07:00
Cory Benfield
b2cbe766f0
Add support for HTTP Upgrade
2017-10-12 17:24:00 -07:00
Johannes Weiss
cf352ac0c3
depend on OpenSSL properly
2017-10-19 19:51:42 +01:00
Cory Benfield
fb9e14b4d4
Don't lose promises on synchronous close.
2017-10-18 16:53:45 -07:00
Johannes Weiss
ad3d8ad34a
improve the readme
2017-10-18 19:29:25 +01:00
Cory Benfield
7dddd67608
Add TLS configuration object
2017-09-29 14:25:46 +01:00
Johannes Weiss
2889c7e3de
fix buffer confusion on incomplete writes
2017-10-17 16:51:15 +01:00
Cory Benfield
0803012b7a
Add support for retrieving headers in canonical form
2017-10-13 14:13:45 -07:00
Cory Benfield
6f17b320d5
Ensure no transfer-encoding when body is forbidden
2017-10-13 13:44:51 -07:00
Johannes Weiss
3bef8a4012
turn import Foundation comments into code :)
2017-10-12 16:33:50 +01:00
Cory Benfield
1f52bac1f9
Add support for HTTP trailers
2017-10-04 13:49:03 +01:00
Cory Benfield
8094e43582
Prevent multiple closure of the EmbeddedChannel.
2017-10-10 09:21:46 -07: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
47ac46bbe3
Don't join Set-Cookie headers together
2017-10-09 10:37:13 -07:00
Cory Benfield
cdfa66d081
Stop reaching into SSL_CTX
2017-10-09 14:52:35 -07:00
Cory Benfield
3b40563a5e
Prevent hot loop starving I/O
2017-10-09 18:14:49 -07:00
Cory Benfield
c2f461e4b7
[OpenSSLHandler] Flush less frequently for outgoing application data.
2017-10-04 17:29:38 +01:00
Cory Benfield
55ae8a8606
Make MarkedCircularBuffer public
2017-10-02 11:36:29 +01:00
Johannes Weiss
de2cb8a038
ByteBuffer.set with Collection of UInt8
2017-09-29 15:41:32 +01:00
Johannes Weiss
c1b1d26d07
HTTPRequestDecoder: forward channelReadComplete
2017-09-29 14:41:17 +01:00
Johannes Weiss
66612108f5
fix "var and not modified" compiler warning
2017-09-29 14:29:50 +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
Cory Benfield
bdce6b39ca
Better handle multiple calls to close() in TLS.
2017-09-27 11:16:58 +01:00
Cory Benfield
8a6d9c825c
OpenSSL-based TLS support
...
Add initial OpenSSL support to NIO.
2017-09-26 14:47:41 +01:00
Johannes Weiss
a73d46f218
HTTP/1.1 Chunked Encoding
...
* HTTP/1.1 Chunked Encoding
* fix MarkedCircularBuffer: if not marked do not try to move mark when removing first
* fix HTTPRequestDecoder: dispatch callouts after parsing is complete
* fix HTTPTest: feed pipeline the inbound data correctly
2017-09-25 15:33:02 +01:00
Johannes Weiss
cee2a35a41
give user useful message if IOData unwrap fails
2017-09-25 13:00:09 +01:00
Johannes Weiss
23475c3bf0
trivial: one proper init for Future
2017-09-21 18:30:45 +01:00
Johannes Weiß
8e06697362
fix EventLoop shutdown by introducing shutdownGracefully
2017-09-20 17:15:06 +01:00
Johannes Weiß
1b46d7c4ba
fix ScheduledTask's Comparable implementation
2017-09-20 17:57:31 +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
6721d46b9d
make scheduling tasks on the EventLoop compatible with the tail call syntax
2017-09-18 16:24:08 +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
Johannes Weiss
69765f58d6
refactor already closed errors
2017-09-15 18:18:22 +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
6590bb45a6
Accept handler must always propagate read
2017-09-15 14:26:02 +01:00
Cory Benfield
5d7da679af
Fire channelActive on successful connect
2017-09-15 14:24:48 +01:00
Cory Benfield
bcdbe4bc46
ChannelHandlerContext.connect shouldn't bind
2017-09-15 09:29:59 +01:00
Johannes Weiß
5289094a36
stdlib already has UInt(bigEndian:)
2017-09-13 16:04:07 +01:00
Cory Benfield
0c3d04580b
Correctly try to unwrap InboundIn
2017-09-13 08:26:07 +01:00
Cory Benfield
251e63e82b
Create _EmittingHandler
2017-09-11 16:38:43 +01:00
Norman Maurer
ca7aac3253
Allow to cancel scheduled tasks
2017-08-18 14:07:17 +02:00