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
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
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
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
Cory Benfield
f3e72c13f3
Add HTTP streaming compressor
2017-12-15 09:50:12 +00:00
Cory Benfield
bcdef57481
Correctly track the writer index
2017-12-15 08:24:38 +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
4e188e74b3
Channel tests: use canary value to make sure we don't write past buffer end for iovecs
2017-12-12 13:26:28 +00:00
Johannes Weiss
59566c6365
Channel writes: Tighter asserts & now 100% test coverage
2017-12-12 12:57:45 +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
Johannes Weiss
64a1c2feb8
Channel writes: unit tests & lots of fixes
2017-12-11 12:20:46 +00:00
Johannes Weiss
8a4a658bc7
fix large ByteBuffer allocations
2017-12-08 10:37:14 +00:00
Johannes Weiss
b579f80efd
in failAll we double accounted for outstanding ByteBuffers :(
2017-12-08 09:40:31 +00:00
Johannes Weiß
e1b30f0a3d
fix Channel writes
2017-12-05 17:08:42 +00:00
Johannes Weiss
215620d7a6
syscall wrapper: don't do an allocation for every failed syscall
2017-12-07 15:37:12 +00:00
Johannes Weiss
ff991da658
make the CircularBuffer implementation more straightforward & docs
2017-12-04 16:59:16 +00:00
Norman Maurer
1a9cd14118
More agressively try to increase the number of bytes we read from the Channel per read.
...
Motiviation:
We used to only allocate one buffer per read loop (by default we use multiple reads per loop) and record for the next loop iteration if we need to allocate a bigger buffer or not. This can lead to very slowely ramping up of number of bytes we read. We should better detect if we should allocate a new buffer because we used all the writable bytes to allow faster ramping up of numbre of bytes to read .
Modification:
- Change RecvByteBufferAllocator.record to return a Bool that wil lsignal if we used all the writable bytes of the last allocation and so may want to try to allocate a bigger buffer again
- Adjust tests.
Result:
Faster adjustment of the ByteBuffer capacity when reading data.
2017-12-04 15:43:13 +01:00
Johannes Weiss
5eca60e46b
make ByteBuffer tests slightly more interesting
2017-12-01 17:39:23 +00:00
Johannes Weiss
98017432b8
dont require Foundation for IOError description creation
2017-12-01 14:31:37 +00:00
Johannes Weiß
a22fc02c51
ByteBuffer: fix a UInt underflow
2017-11-30 16:57:26 +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
4a74aca592
integration test for syscall wrapper
2017-11-21 15:00:25 +00:00
Johannes Weiß
202e1c37d7
port integration tests for HTTP server
2017-10-10 19:41:01 +01:00
Johannes Weiss
09b8925591
make ChannelHandlerCtx operations not crash if channel is already closed
2017-11-17 14:57:25 +00:00
Johannes Weiß
936e812b32
make system call wrapper fast & test it
2017-11-16 15:42:03 +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
Cory Benfield
1cb736e370
Catch bugs with sync shutdown
2017-11-10 17:28:52 +00:00
Cory Benfield
4cf0bbaaf4
Make our circular buffers collections
2017-11-16 12:56:29 +00:00
Johannes Weiß
31cd14eaad
fix inEventLoop race and makes TSan happy
2017-11-10 14:56:33 -08:00
Cory Benfield
8d2f13be68
Add parent property
2017-11-13 10:11:52 +00:00
Johannes Weiss
f6343496c3
add another test for a very large number of buffered writes
2017-11-11 00:10:23 -08:00
Cory Benfield
be81dbacff
Forbid oversized writev calls
2017-11-10 16:08:49 +00:00
Cory Benfield
13d80285c8
Don't write too much to writev
2017-11-10 15:45:41 +00:00
Johannes Weiß
40edb34d8f
introduce & test ByteBuffer.readString
2017-11-08 13:06:09 -08:00
Johannes Weiss
c18db56fc2
make >= 0 checks for index/length a precondition
2017-11-09 02:49:11 -08:00
Max Moiseev
dccbbf0bb7
Remove unnecessary Numeric constraint
2017-11-08 14:46:10 -08:00
Johannes Weiß
20800ed454
use the now fully featured FixedWidthInteger instead of EndiannessInteger
2017-11-08 13:08:02 -08:00
Cory Benfield
4d09289f9b
Add missing test
2017-11-08 14:33:57 +00:00
Norman Maurer
9bb7f6727d
Use correct types in default method
...
Motivation:
The default method we added for the MessageToByteEncoder has the incorrect parameter types and so is useless.
Modifications:
Fix type of parameter.
Result:
Default method match the protocol requirement.
2017-11-08 01:14:43 -08:00
Johannes Weiss
839a5050dd
ByteBuffer: fast path for contiguous collections
2017-11-03 02:39:54 -07:00
Norman Maurer
a172546d7b
Use typesafe ChannelInboundHandler in IdleStateHandlerTest
2017-10-30 16:40:31 +01:00