Norman Maurer
728417abd5
Use correct writerIndex when read for channel
2014-02-16 20:43:36 +01:00
Norman Maurer
9330172f80
Introduce a native transport for linux using epoll ET
...
This transport use JNI (C) to directly make use of epoll in Edge-Triggered mode for maximal performance on Linux. Beside this it also support using TCP_CORK and produce less GC then the NIO transport using JDK NIO.
It only builds on linux and skip the build if linux is not used. The transport produce a jar which contains all needed .so files for 32bit and 64 bit. The user only need to include the jar as dependency as usually
to make use of it and use the correct classes.
This includes also some cleanup of @trustin
2014-02-15 22:44:56 +01:00
Trustin Lee
a0e74ff984
Use thread local direct buffer for I/O when the current allocator is unpooled
...
- Allocating and deallocating a direct buffer for I/O is an expensive
operation, so we have to at least have a pool of direct buffers if the
current allocator is not pooled
2014-02-15 11:24:01 -08:00
Trustin Lee
99beb188c4
Fix inefficient loop in QueryStringDecoder.decodeComponent()
...
- Fixes #2228
- There's no point of looping until the end of the component if at least one '%' or '+' is found.
2014-02-14 13:26:43 -08:00
Michael Nitschinger
33197c7696
Update JMH to 0.3.2
2014-02-14 13:16:13 -08:00
Trustin Lee
fbd4385506
Determine the default allocator from system property
...
- Add ByteBufAllocator.DEFAULT
- The default allocator is now 'pooled'
2014-02-14 13:04:12 -08:00
Trustin Lee
f0127ec991
Do not warn about Unsafe in Android
2014-02-14 12:06:24 -08:00
Trustin Lee
bb145c0057
Fix wiki link
2014-02-14 12:04:12 -08:00
Trustin Lee
0e4c80b953
Fix IllegalStateException caused by ChannelHandlerAppender
2014-02-13 19:44:40 -08:00
Trustin Lee
abcb39b638
Do not use String.format() for log message generation
...
- It's slow.
2014-02-13 19:31:17 -08:00
Trustin Lee
c671103289
Deprecate CombinedChannelDuplexHandler in favor of ChannelHandlerAppender
...
- Fixes #2233
- Add ChannelHandlerAppender
2014-02-13 19:20:56 -08:00
Trustin Lee
7e1db4feb7
Deprecate CombinedChannelDuplexHandler in favor of ChannelHandlerAppender
...
- Fixes #2233
2014-02-13 19:20:25 -08:00
Trustin Lee
dea5c688fd
Fix checkstyle
2014-02-13 18:51:32 -08:00
Trustin Lee
ac70dc4546
Update the version to 4.1.0.Alpha1-SNAPSHOT
2014-02-13 18:32:26 -08:00
Trustin Lee
5226f75cfa
Clean up HttpObjectAggregator
2014-02-13 18:25:15 -08:00
Trustin Lee
51349352e2
Fix a bug that CompositeByteBuf.touch() does nothing
2014-02-13 18:24:36 -08:00
Trustin Lee
8837afddf8
Enable a user specify an arbitrary information with ReferenceCounted.touch()
...
- Related: #2163
- Add ResourceLeakHint to allow a user to provide a meaningful information about the leak when touching it
- DefaultChannelHandlerContext now implements ResourceLeakHint to tell where the message is going.
- Cleaner resource leak report by excluding noisy stack trace elements
2014-02-13 18:16:25 -08:00
Trustin Lee
0235244e55
Touch a ReferenceCounted while it traverses across a pipeline
2014-02-13 18:11:54 -08:00
Trustin Lee
45e70d9935
Add ReferenceCounted.touch() / Add missing retain() overrides
...
- Fixes #2163
- Inspector warnings
2014-02-13 18:10:11 -08:00
Trustin Lee
7e60877bc5
Merge the attribute map of ChannelHandlerContext into Channel
...
- Fixes #2136
- Also fixes some generics warnings
2014-02-13 18:02:44 -08:00
Trustin Lee
77d1f97b57
Add an HTML5 encoder mode for HttpPostRequestEncoder
...
- backported from 709be30442
by @igstan
2014-02-13 17:55:07 -08:00
Trustin Lee
4b0634b06a
Revive the deleted methods in HttpDataFactory and deprecate them
2014-02-13 17:48:13 -08:00
Michael Nitschinger
574480e332
Rename HttpDataFactory.*datas to *data. Fixes #2094
2014-02-13 17:45:36 -08:00
Trustin Lee
1d577a8d95
Get the PID properly on Android
...
- Related: #2109
2014-02-13 17:37:22 -08:00
Trustin Lee
d97f72d2c9
Fix a problem where DefaultChannelId prevents Netty 5 from running on Android
...
- Fixes #2109
- Use reflection to find the current PID
2014-02-13 17:35:44 -08:00
Trustin Lee
2b84314fdd
Add Recycler.Handle.recycle() so that it's possible to recycle an object without an explicit reference to Recycler
2014-02-13 17:24:37 -08:00
Trustin Lee
df346a023b
Change the return type of EmbeddedChannel.read*() from Object to an ad-hoc type parameter
...
.. so that there's no need to explicitly down-cast.
Fixes #2067
2014-02-13 17:19:26 -08:00
Trustin Lee
5e69955d23
Fix another buffer leak in XmlFrameDecoderTest
2014-02-13 17:15:06 -08:00
Trustin Lee
457cd2f6fa
Fix buffer leaks in XmlFrameDecoderTest
2014-02-13 17:14:59 -08:00
Trustin Lee
502ccabab3
Fix inspector warnings
2014-02-13 17:13:55 -08:00
Mirko Caserta
ee8571824b
CDATA support
2014-02-13 17:13:49 -08:00
Mirko Caserta
086dbd1ba1
Fixed the XML decoder
2014-02-13 17:13:39 -08:00
Trustin Lee
2d5a3b5898
Add XML decoder
...
- based on @mcaserta's work at https://github.com/netty/netty/pull/1121
- not ready for a merge yet
2014-02-13 17:13:29 -08:00
Frederic Bregier
9bd44a1d7c
Add support for 'charset' property for multipart boundaries
...
- Fixes #2004
2014-02-13 17:12:59 -08:00
Michael Nitschinger
b17a765615
codec-memcache: prefix abstract classes with Abstract.
2014-02-13 17:09:21 -08:00
Michael Nitschinger
fcb32a77b9
codec-memcache: No need to allocate a buffer if no extra is used.
2014-02-13 17:09:13 -08:00
Trustin Lee
6e23cf8c92
Fix checkstyle
2014-02-13 17:08:22 -08:00
Trustin Lee
516795fcfb
Add convenient logging methods for logging exceptions quickly
...
.. Mainly useful for writing tests or ad-hoc debugging
2014-02-13 17:08:14 -08:00
Trustin Lee
9840de82f0
Fix another buffer leak in BinaryMemcacheDecoderTest
2014-02-13 17:05:25 -08:00
Trustin Lee
b592a18cd1
Fix buffer leaks in BinaryMemcacheDecoderTest
2014-02-13 17:05:19 -08:00
Trustin Lee
ccd231b8f4
Fix a buffer leak in BinaryMemcacheDecoder
2014-02-13 17:05:05 -08:00
Trustin Lee
acf7dbf811
Fix buffer leaks in BinaryMemcacheEncoderTest
2014-02-13 17:04:58 -08:00
Trustin Lee
a8bc720977
Fixed buffer leaks in LoggingHandlerTest
2014-02-13 17:03:21 -08:00
Trustin Lee
86c4166c24
Fixed various buffer leaks in FixedCompositeByteBufTest
2014-02-13 17:03:13 -08:00
Trustin Lee
fab56bae94
Fix a buffer leak in BinaryMemcacheObjectAggregatorTest
2014-02-13 17:03:05 -08:00
Trustin Lee
d417e3dbd0
Fix a buffer leak in BinaryMemcacheObjectAggregatorTest
2014-02-13 17:02:58 -08:00
Trustin Lee
26fc84529f
Also record retain() and release()
2014-02-13 16:58:45 -08:00
Trustin Lee
0ff98c98e2
readableBytes() ==0 -> !isReadable()
2014-02-13 16:56:35 -08:00
Trustin Lee
d31a3e4120
Hide protocol detail from users
2014-02-13 16:56:22 -08:00
Michael Nitschinger
215e75c7d9
codec-memcache: increase default buffer size and only encode extras if set.
2014-02-13 16:55:46 -08:00