Commit Graph

2174 Commits

Author SHA1 Message Date
Norman Maurer
2f78b1abe0 Fix checkstyle 2012-03-01 18:12:55 +01:00
Norman Maurer
252d6c2cce Merge back changes to support execution of Runnable in the IO Thread.
This also fixes the threading issue. See #140, #187, #209 and #210
2012-03-01 18:10:16 +01:00
Trustin Lee
8a2d8f811d Make ReplayingDecoder.newCumulationBuffer() overridable / Make Replaying|FrameDecoder allocate at least 256 bytes by default 2012-02-29 10:02:20 -08:00
Trustin Lee
ea6ed5cb61 Optimize ReplayingDecoder even further
* If checkpoint is non-zero, do not copy the whole input into cumulation but copy only the part after the checkpoint
2012-02-29 09:41:35 -08:00
Trustin Lee
4df5752669 Fix #208 - SslHandler does not use ChannelBufferFactory to create a new buffer 2012-02-29 09:20:30 -08:00
Trustin Lee
3e03347fee Remove shameful System.out.println 2012-02-28 16:46:49 -08:00
Trustin Lee
6fa3e325fc Remove an unused import 2012-02-28 16:40:04 -08:00
Trustin Lee
1eeb2da736 Optimize FrameDecoder and ReplayingDecoder
* Overall code cleanup on FrameDecoder and ReplayingDecoder
* FrameDecoder discards readableBytes only when it has to
* Replaced createCumulationDynamicBuffer with newCumulationBuffer with
  an additional hint
* ReplayingDecoder does not perform memory copy if possible
2012-02-28 16:30:00 -08:00
Norman Maurer
c33f8a9b91 Add empty line 2012-02-28 16:51:57 +01:00
Norman Maurer
5a97e53f68 Workaround for JDK NIO bug. See #203 2012-02-28 16:51:57 +01:00
Trustin Lee
1bc988f17c Decreased all selector timeout from 500 ms to 10 ms
See #204
2012-02-27 13:02:12 -08:00
Trustin Lee
714ec984dd Fix #204 - Increate the granularity of connect timeout in NIO
* Changed the Selector timeout from 500 to 10 so that the timeout is
* checked every 10 milliseconds
2012-02-27 12:59:00 -08:00
norman
a0f9afb1eb Check if loglevel is enabled before logging 2012-02-27 07:37:59 +01:00
Norman Maurer
3b1b2f0b1d Add OrderedDownstreamThreadPoolExecutor which can be used when using the
new feature of ExecutionHandler to also handle downstream events. This
is mainly useful for SEDA like stuff. See #173
2012-02-26 11:04:20 +01:00
Trustin Lee
51dec6013b Fix build failure 2012-02-23 10:07:46 -08:00
norman
af2f751fa8 Fix compilation issue due to jdk bug in older jdk versions. See #197 2012-02-21 08:11:05 +01:00
norman
fc16ab2d64 Check if logging level is enabled before log. See #192 2012-02-17 10:58:03 +01:00
norman
0cc8153aa6 Make sure the 3.2 branch is usable with java5. This changes are based on
the pull request #191 with a modification to not break the API.
2012-02-16 07:59:15 +01:00
norman
c12717bfed Correctly decode URI in QueryStringDecoder. See #189 2012-02-15 08:35:53 +01:00
Norman Maurer
26871d2d05 Fix HttpSnoopClient. See #183 2012-02-12 12:34:18 +01:00
Norman Maurer
5663db690c Remove unused imports 2012-02-11 12:56:16 +01:00
Jeff Pinner
bbe9e55afa SPDY Protocol HTTP Layer 2012-02-10 12:23:59 -08:00
Trustin Lee
a447fbd18a Use getHeader() instead of getHeaders() 2012-02-07 18:13:33 +09:00
Trustin Lee
6e8e836b2e Fix license headers 2012-02-07 17:40:16 +09:00
Norman Maurer
40f4f118cd Don't require HttpChunkAggregator to be present in pipeline for WS. See
#177
2012-02-04 17:41:07 +01:00
Norman Maurer
447366168f Remove unused imports 2012-02-04 16:05:17 +01:00
Norman Maurer
471269eabe Remove unused imports 2012-02-04 16:03:32 +01:00
Norman Maurer
7344c7d87c Some small code cleanup 2012-02-04 16:02:44 +01:00
Norman Maurer
88ecc388d3 Remove unused imports 2012-02-04 15:56:36 +01:00
Jeff Pinner
3f9e89c17d Merge remote-tracking branch 'upstream/3.2' into spdy_framing_layer_3_2 2012-02-03 16:23:41 -08:00
Jeff Pinner
9fcb4643b1 SPDY Protocol Framing Layer Tests 2012-02-03 16:22:39 -08:00
Norman Maurer
188f01f317 Remove the child Executor with the right method so it will also work
when the channel is not the key.See #175
2012-02-03 15:47:34 +01:00
Norman Maurer
01225b0a52 HttpMessageEncoder should add Header "Transfer-Encoding: chunked" if
HttpMessage.isChunked(). See #171
2012-02-02 15:18:46 +01:00
Trustin Lee
0ee43f770f Remove a unused field 2012-02-02 16:18:27 +09:00
Trustin Lee
a7d419a481 Merge pull request #172 from jpinner/http_accept_encoding_3_2
Fix #164: HttpContentCompressor accepts encodings whose qvalue is 0
2012-02-01 22:53:19 -08:00
Jeff Pinner
24baa9a2ac Fix #163: HttpContentCompressor consumes too much memory 2012-02-01 16:00:10 -08:00
Jeff Pinner
aecce011e8 Fix #164: HttpContentCompressor accepts encodings whose qvalue is 0 2012-01-31 14:34:21 -08:00
Norman Maurer
4116c44c77 FixedLengthFrameDecoder should used a optimizated initialSize
when creating the cumulative ChannelBuffer. See #170
2012-01-31 21:02:00 +01:00
Jeff Pinner
cf8a4d627d SPDY Protocol Framing Layer 2012-01-31 12:00:21 -08:00
Norman Maurer
4d7c9b397d Allow to @override the cumulative ChannelBuffer creation. See #169 2012-01-31 20:57:23 +01:00
Norman Maurer
edc34c319d Mark StaticChannelPipeline @Deprecated. See #168 2012-01-31 13:03:53 +01:00
Norman Maurer
3b0f45c93c Fix possible NPE which will be thrown if the Buffer was set to null and
after that Exception was thrown. See #166
2012-01-31 11:07:33 +01:00
Norman Maurer
12852a20fb Remove not-needed call of ByteBuffer.clear(). See #161 2012-01-24 20:39:42 +01:00
Jeff Pinner
cd934c8305 Fix #157: ZlibDecoder does not support preset dictionary 2012-01-21 15:32:53 -08:00
Norman Maurer
57df916755 UnsafeDetectUtil checks that the Unsafe class has the field theUnsafe.
Fix for #156
2012-01-21 21:52:37 +01:00
Trustin Lee
c95f9314f3 Fix #153: Add ChannelFuture.rethrowIfFailed() 2012-01-19 13:34:28 +09:00
Trustin Lee
fafeae7aa3 Clean up the new WebSocket package 2012-01-19 13:12:28 +09:00
Trustin Lee
e4a7900b10 Rename HTTP snoop example classes for disambiguation 2012-01-15 00:28:57 +09:00
Trustin Lee
c850bd9231 Overall code cleanup
* Fixes based on checkstyle feed back
* Simplify WebSocket client example (needs more work)
* Rename Autobahn test server classes
2012-01-15 00:17:41 +09:00
Trustin Lee
831a13694c Reverting the previous commit which makes no sense 2012-01-13 20:49:31 +09:00
Trustin Lee
968ed8b53e Do not count a ChannelDownstreamEventRunnable
* MATPE is only for upstream events.
2012-01-13 20:47:13 +09:00
Trustin Lee
9c4cd3702f Backport #111 - Improve org.jboss.netty.execution for more flexible thread model 2012-01-13 20:36:45 +09:00
Trustin Lee
009300fad3 Overall cleanup / Add lost old jzlib headers 2012-01-13 17:39:53 +09:00
Norman Maurer
94490aeb2e Fix compile error. No idea why this was in here.. 2012-01-11 18:00:38 +01:00
Norman Maurer
02be2523e0 Remove close(..) call which gave us troubles with
ClosedChannelException. See #142 and #138
2012-01-11 17:59:30 +01:00
Trustin Lee
e2109b236b Fix various checkstyle violations
Backported from master
2012-01-11 20:17:47 +09:00
Norman Maurer
53fede511c Fix possible JavaDoc error in QueryStringEncoder. Type mismatch. 2012-01-08 21:53:02 +01:00
Norman Maurer
54bba7239c Fix NPE which is triggered if the destory method is called before
channelOpen(..). See #143
2012-01-07 17:44:36 +01:00
Trustin Lee
72a8159344 Issue #141: hashdos security vulnerability in QueryStringDecoder and possibl
* Limited maximum number of parameters to 1024 by default and made the limitation configurable
* QueryStringDecoder is now able to handle an HTTP POST content
* Backported the improvements from master
2011-12-30 18:00:42 +09:00
Vibul Imtarnasan
9d8f08628e Merge pull request #131 from veebs/WebSocketVersion3.2
Changed tabs to spaces and added some docs for websocket packages.
2011-12-15 03:51:09 -08:00
vibul
cc494310da Change tabs to spaces. 2011-12-15 22:36:47 +11:00
Trustin Lee
0897206e69 Do not call setPipelineFactory() unnecessarily 2011-12-15 17:01:11 +09:00
Trustin Lee
414b18e704 Fix #129: Memory leak when setOptions() fails while accepting a new connection. 2011-12-15 16:39:10 +09:00
Trustin Lee
c6ef712503 Do not use ObjectStreamClass.lookupAny() to resolve interfaces
Fixes #130
2011-12-15 16:35:27 +09:00
vibul
d8d3cfd60b Format source code 2011-12-15 16:35:01 +11:00
vibul
f5cc1e02fa Support websocket client custom headers. See pull #123 2011-12-15 15:09:21 +11:00
vibul
cedbfba07d Change use of specification version to wire protocol version 2011-12-15 14:34:20 +11:00
vibul
a664e92244 Back port #115 and #117 to 3.2 branch 2011-12-11 22:50:19 +11:00
vibul
24ef8a5259 Remove @override annotations which are only valid with java6 2011-12-11 22:23:44 +11:00
Norman Maurer
3359a565c2 Make LinkedTransferQueue also work in java5 envs. 2011-12-11 11:53:00 +01:00
Norman Maurer
36e8c4e8f2 Make it work with java5 also 2011-12-11 11:30:11 +01:00
Norman Maurer
43f72b42f7 Rename test class to be more inline with the rest of the project 2011-12-11 11:28:31 +01:00
Norman Maurer
9e7c87b683 Remove @override annotations which are only valid with java6 2011-12-11 11:23:40 +01:00
Chavdar Botev
f93e356003 fix for issue 113 2011-12-10 14:58:27 -08:00
Trustin Lee
0ee7123aa6 No need to specify a default value 2011-12-09 15:11:42 +09:00
Trustin Lee
6e49e107d4 Better handshaker naming / Remove deprecated example / Hide UTF8 classes from users 2011-12-09 14:56:24 +09:00
Trustin Lee
2b8b11c60a Deprecate old websocket package / Update websocket version list 2011-12-09 14:37:50 +09:00
Trustin Lee
f91ebb14b2 More license updates 2011-12-09 14:31:04 +09:00
Trustin Lee
c126ceffdd Build tarball only 2011-12-09 14:20:32 +09:00
Trustin Lee
2231c31f9f Fix license headers / Remove JBoss.org style 2011-12-09 14:16:33 +09:00
Trustin Lee
16160a0e69 Remove outdated UML / Fix image URL
* We are going to focus more on the netty-book project instead of
outdated UML diagrams
2011-12-09 13:54:15 +09:00
Trustin Lee
683d678c17 Remove @author and @version / Remove COPYRIGHT.txt
* The new copyright header replaces @author
* COPYRIGHT.txt is irrelevant to us now.
2011-12-09 13:44:53 +09:00
Trustin Lee
f9b879e73f http://jboss.org/netty/ to http://netty.io/ 2011-12-09 12:47:26 +09:00
norman
081395410d Only create UnsafeDynamicChannelBuffer if really needed. See #108 2011-12-08 14:36:46 +01:00
norman
3b368125b0 Fields in ReplayingDecoder does not need atomic nature. See #108 2011-12-08 14:29:12 +01:00
norman
0b77d89004 Always cleanup() in ReplayingDecoder if we have received any messages at
all. See #105
2011-12-07 20:41:03 +01:00
norman
4b9376d3c8 Missed to commit these files before. Part of #102 2011-12-07 19:08:49 +01:00
norman
b2be5f5058 Backport latest LinkedTransferQueue to 3.2.x. This also includes changes
to allow the usage in java5 enviroments. Be aware that the new
LinkedTransferQueue will only be used when java6+ was found. See #102
2011-12-07 17:14:11 +01:00
Vibul Imtarnasan
1a6dae4c66 Merge pull request #99 from veebs/WebSocketFor3.2
Back portal WebSocketX package from master into 3.2
2011-12-06 15:06:15 -08:00
Trustin Lee
5dce05e4bd Remove DocBook from build 2011-12-03 20:02:50 +09:00
Trustin Lee
97646745c1 Merge branch '3.2' of github.com:netty/netty into 3.2 2011-12-03 19:56:13 +09:00
Trustin Lee
a4f2629563 Separate the user guide out of the project. 2011-12-03 19:54:11 +09:00
norman
936e5ae1a8 Make sure the cumulation Buffer is only created if really needed. See
#88
2011-12-02 07:22:14 +01:00
vibul
67650530e6 Port websocket V10 and V17 support from master back into 3.2. 2011-12-02 16:29:42 +11:00
norman
77cbd3de34 Replace synchronization with an lock free approach in OMATPE. See #80 2011-12-01 12:13:18 +01:00
norman
49f2616972 Remove the usage of AtomicLong as this only confuse users. The Handler
is not suited for re-use anyway. See #93
2011-12-01 09:41:57 +01:00
norman
9ac5b8be83 Make it easier to issue the handshake when SslHandler is used in
a client. See #84
2011-11-29 11:45:18 +01:00
Trustin Lee
4be4e583c7 Upgrade depepdencies to the latest versions
* Regenerate LocalTimeProtocol.java with the latest protoc
* Add an instruction on how to generate LocalTimeProtocol.java
* Not upgrading maven-bundle-plugin, which has a regression in 2.3.5:
  * https://issues.apache.org/jira/browse/FELIX-3058
2011-11-24 11:05:33 +09:00
Trustin Lee
84fd044eb4 Fix weird repo mess 2011-11-24 10:20:05 +09:00
Trustin Lee
359417358e Add missing license headers and fix class name
* Classloader -> ClassLoader
2011-11-24 10:11:50 +09:00