Commit Graph
1096 Commits
Author SHA1 Message Date
Cory Benfield 92634a68fb Add utility for detecting core count. 2018-01-22 12:05:43 +00:00
Cory Benfield 34cc404142 Refactor internal storage model for SocketAddress 2018-01-22 12:07:40 +00:00
Johannes Weiss 24abe7fe19 merge (& fix) the inbound and outbound channel pipelines 2018-01-19 14:50:37 +00:00
Johannes Weiß 05a58e5a58 readFromSocket: be slightly more clever about buffer.clear() 2018-01-18 15:11:51 +00:00
Johannes Weiss db28cf4452 don't pretend user events are typed & remove tryUnwrap for in/outbound data 2018-01-19 14:12:57 +00:00
Norman Maurer 4d8cf1ff22 Add support for closing only the output / input side of the Channel. 2017-12-28 13:40:31 +01:00
Cory Benfield 1535c2f5fc Add IP string parsing 2018-01-18 18:07:50 +00:00
Cory Benfield 1e763d419d Cleanups for Fuzzing 2018-01-18 14:48:49 +00:00
Norman Maurer 2e2a82b27e Try to drain inbound data on write error.
Motivation:

To ensure we not leave any unread data on the socket we should try to read one last time (if autoread is enabled).

Modifications:

- Depending on if autoread is enabled or not we will try to read one more time
- Guard against re-entry of flushNow0()
- Correctly handle SIGPIPE in all cases
- Add testcase

Result:

Drain data from socket on write error if needed.
2017-12-27 08:10:53 +01:00
Cory Benfield a2bb047224 Add bindings for {send,recv}mmsg. 2018-01-17 09:18:28 +00:00
Johannes Weiss 8b74d21562 more robust tempfiles for SSL trust bundle 2018-01-10 17:19:02 +00:00
Johannes Weiss 7996d12bed make NIO cross-compilable 2018-01-10 11:16:07 +00:00
Johannes Weiß c79c5ba364 re-export Darwin/Glibc and reduce number of #if os(...) 2018-01-09 15:08:17 +00:00
Cory Benfield 9fd4006c93 Add explicit time control to EmbeddedEventLoop 2018-01-08 17:59:18 +00:00
Johannes Weiss 64ef7728f9 finish renaming ByteBuffer getters to getType 2018-01-09 09:32:39 +00:00
Johannes Weiß 5f21764710 fix compiler warning & typo 2018-01-08 16:48:44 +00:00
Cory Benfield 8ee527ac52 Simplify running code 2018-01-08 16:39:54 +00:00
Johannes Weiss 34e0b1ac0a sanitise time interval (aka TimeAmount) APIs 2018-01-08 15:41:40 +00:00
Johannes Weiss 9a5390495e improve channel pipeline
We now use two (doubly) linked lists (inbound & outbound) for the
ChannelPipeline. Previously we used two singly linked lists and an
array. That would give us the worst of the two worlds: Linear time
modifications and complicated code.
2018-01-05 18:17:34 +00:00
Norman Maurer 3e7fe77202 Use switch statement when try to unwrap / force unwrap 2017-12-28 14:57:23 +01:00
Johannes Weiss d2b671da66 make HTTPServerClientTests more robust 2018-01-05 15:19:22 +00:00
Johannes Weiss 62b4acaedf ByteBuffer.clear: Prevent copying bytes if allocation is necessary 2018-01-05 15:01:48 +00:00
Johannes Weiss e217dea875 fix EmbeddedChannel: created more than one EmbeddedEventLoop 2018-01-04 18:08:07 +00:00
Johannes Weiss 246bd7e56f EventLoop and EventLoopGroup should be class bound 2018-01-04 17:41:10 +00:00
Norman Maurer e8c3a3083a Add more asserts to ensure methods are called from within the EventLoop 2017-12-27 13:59:08 +01:00
Norman Maurer 43303437d1 Declare option label as optional in ClientBootstrap 2017-12-21 22:04:42 +01:00
Norman Maurer 8b9a31536e Allow to specify a connect timeout 2017-12-20 15:26:39 +01:00
Norman Maurer 9015d08310 Use switch statements to handle ChannelOptions 2017-12-20 20:54:39 +01:00
Norman Maurer 8f1ad37edd Use camel case for ChannelOption factory values and add docs 2017-12-20 14:18:07 +01:00
Norman Maurer 2f527500f5 Rename Bootstrap.option to Bootstrap.channelOption to be more consistent 2017-12-20 15:30:05 +01:00
Johannes Weiss dfd25bf576 refactor Channel initialisation & *Bootstrap docs 2017-12-13 15:42:54 +00:00
Johannes Weiß eaf658691c some grammar fixes 2017-12-19 15:23:26 +00:00
Norman Maurer 4f2c5234df Add docs for ChannelPipeline (mostly copied from netty as it was really good and complete). 2017-12-14 08:27:19 +01:00
Johannes Weiß 94e1af5452 compile warning-free on Swift 4.1 2017-12-18 15:37:57 +00:00
Johannes Weiss fa35c603a0 on Darwin, sendfile might write fully and return EWOULDBLOCK 2017-12-15 16:58:12 +00:00
Norman Maurer 76482816e6 Prefix all ByteBuffer methods with get if these allow access to unitialized memory. 2017-12-15 12:24:09 +01:00
Norman Maurer 5fd753e1b7 Add documention for FileRegion 2017-12-15 11:06:07 +01:00
Norman Maurer 8efd6438f2 Replace usage or Array with CircularBuffer in EmbeddedEventLoop. 2017-12-14 20:11:58 +00:00
Cory Benfield f3e72c13f3 Add HTTP streaming compressor 2017-12-15 09:50:12 +00:00
Norman Maurer e1efe8786f Declare EmbeddedChannel as public so people can acutally use it 2017-12-15 09:10:26 +00:00
Cory Benfield bcdef57481 Correctly track the writer index 2017-12-15 08:24:38 +00:00
Johannes Weiss 9bfea063a0 ChannelHandlerContext docs 2017-12-13 16:54:53 +00:00
Johannes Weiss 8a1297eff1 Channel docs 2017-12-13 16:07:14 +00:00
Johannes Weiss e4ef4c19f7 fix write spinning (should be max writeSpinCount writes) 2017-12-12 14:14:10 +00:00
Johannes Weiss 59566c6365 Channel writes: Tighter asserts & now 100% test coverage 2017-12-12 12:57:45 +00:00
Johannes Weiss 69c0cd463b fix random typos 2017-12-12 11:37:07 +00:00
Cory Benfield 2373863f54 No fatal error on unexpected non-ciphertext data 2017-12-12 11:31:05 +00:00
Johannes Weiß 25f4e2ceff PriorityQueue: make it work for partial orders 2017-12-12 11:13:33 +00:00
Cory Benfield 584fdb6507 ByteToMessageDecoder must propagate ChannelInactive 2017-12-12 10:49:12 +00:00
Johannes Weiss b203c602a9 Channel writes: more bugs found & fixed 2017-12-12 08:05:57 +00:00