Commit Graph

2445 Commits

Author SHA1 Message Date
James Tyrrell
78301f4ac6 Improved HTTP message streaming in HttpMessageDecoder 2012-06-03 21:29:43 +10:00
Trustin Lee
38314b5191 Fix #378 again
- @jroper's fix did not work, so I just fixed it again.
Conflicts:

	src/main/java/org/jboss/netty/handler/codec/http/DefaultCookie.java
2012-06-02 23:08:43 -07:00
James Roper
e13ff4ae93 Fixing #378, when path or domain are null in both this and that, equals and compareTo return false even when the cookies are equal. 2012-06-02 19:50:36 -07:00
Frédéric Brégier
25c31cd137 Improve Performance by calling very much less sao.setReadPosition(x) 2012-06-02 21:25:55 +03:00
Norman Maurer
b0ba1b9bb6 Let the user explicit set if gathering writes/reads should be used. See #374 2012-06-01 21:03:33 +02:00
norman
8ca40aa148 Remove bad test 2012-06-01 10:26:21 +02:00
norman
a77e4b041e Revert " Make sure calling ExecutionHandler.releaseExternalResource() does not lead to a dead-lock when calling from a ChannelEventRunnable. See #200"
This reverts commit 7800187433.
2012-06-01 10:01:36 +02:00
norman
9d9f96bb5e Merge branch '3' of ssh://github.com/netty/netty into 3 2012-06-01 09:26:41 +02:00
norman
7800187433 Make sure calling ExecutionHandler.releaseExternalResource() does not lead to a dead-lock when calling from a ChannelEventRunnable. See #200 2012-06-01 09:25:59 +02:00
Trustin Lee
75f0de5b41 Remove main()s in the ipfilter package
- They really should not be there.
2012-05-31 16:08:48 -07:00
Trustin Lee
ec5bd42b18 Fix checkstyle errors 2012-05-31 11:55:13 -07:00
Trustin Lee
b0a2b43379 Overall automated clean up 2012-05-31 11:52:10 -07:00
Trustin Lee
fae19efd73 Apply missing changes from master 2012-05-31 11:50:31 -07:00
Trustin Lee
689093408e Move HTTP multipart classes to its own package / Clean-up
- Add HttpConstants
2012-05-31 11:41:30 -07:00
Trustin Lee
4733db72d3 Add a missing newline at the end of the file 2012-05-31 02:45:27 -07:00
Trustin Lee
3f448f4387 Add missing license header 2012-05-31 02:44:33 -07:00
Trustin Lee
80d45f3a06 Use the default constructor which has been un-deprecated 2012-05-31 02:43:22 -07:00
Trustin Lee
aa9bb38f2e Moved ProtocolFamily to a separate class
- Also renamed it to InternetProtocolFamily to be more specific
- INET and INET6 are now IPv4 and IPv6 which are more straightforward
2012-05-31 02:42:50 -07:00
Trustin Lee
58d2d724e2 Un-deprecate the constructors in NioDatagramChannelFactory 2012-05-31 02:38:13 -07:00
Trustin Lee
7fc2d40a24 Fixed all compiler warnings 2012-05-31 02:23:33 -07:00
Trustin Lee
def46a641e Fix compiler warnings 2012-05-31 02:23:33 -07:00
Trustin Lee
af81d52f84 Test both SPDY 2 & 3 2012-05-31 02:23:33 -07:00
norman
fca7f89371 Make sure calling ExecutionHandler.releaseExternalResource() does not lead to a dead-lock when calling from a ChannelEventRunnable. See #200 2012-05-31 09:05:03 +02:00
norman
95e305f0e6 Add some comments and javadocs. Related to #368 2012-05-30 13:02:17 +02:00
norman
1cd0aac738 Fix for java.lang.NoClassDefFoundError: java/net/ProtocolFamily under jdk6. See #368 2012-05-30 12:16:29 +02:00
norman
b98448559d Fix checkstyle 2012-05-29 08:32:29 +02:00
Norman Maurer
a7ab9e0376 StringEncoder must respect the endianness of the used ChannelBufferFactory. See #365 2012-05-28 21:04:02 +02:00
Norman Maurer
80df72843b Make sure the cumulationbuffer will get handled in the right manner even on Exception. Before this could this could lead to an AssertionFailure. See #364 2012-05-28 14:35:11 +02:00
Trustin Lee
06a6b9b3a9 Remove Selector spinning optimization
- Needs more experiments
2012-05-25 09:25:10 -07:00
Norman Maurer
be20b50512 Add a ContextBoundUnmarshallerProvider. See #324 2012-05-24 16:19:09 +02:00
norman
22282cf3e2 Add a ThreadLocalMarshallerProvider and add test cases. See #324 2012-05-24 14:18:12 +02:00
norman
cc97380170 Fix class naming. See #324 2012-05-24 10:23:11 +02:00
norman
1bc52cbd8c Merge back fix for #360 2012-05-24 08:45:48 +02:00
Norman Maurer
98a8bd25bb Add testcases for all marshal encoder and decoder. See #324 2012-05-23 21:48:50 +02:00
Norman Maurer
bc308310e0 Rename classes to reflect the real test coverage. See #324 2012-05-23 21:10:12 +02:00
Norman Maurer
6b0a6db3f5 Follow the same pattern as we have in the serialization package. So we have some compatible jboss marshalling impl and one optimized. See #324 2012-05-23 21:04:58 +02:00
Norman Maurer
c5f6af6584 Some refactoring for the jboss marshalling support to allow easier reuse of components. See #324 2012-05-23 20:38:58 +02:00
Norman Maurer
b0ff61cded Added messages to all IndexOutOfBoundsExceptions. See #359 2012-05-23 17:04:12 +02:00
Norman Maurer
35897027c5 Make sure we handle the sleepTime of 0 correctly in all cases. Thanks to @fredericBregier for review. See #356 2012-05-22 23:09:07 +02:00
Norman Maurer
df82853c11 Only send event upstream once the Ssl handshake was completed successfull. See #358 2012-05-22 22:51:22 +02:00
Norman Maurer
b994cde221 Add workaround to let the sleep work correctly in windows too. See #356 2012-05-22 22:42:02 +02:00
Norman Maurer
2c7c67ef4c Fix compilation error 2012-05-22 22:34:50 +02:00
norman
17dca37380 Fix more typos.. 2012-05-22 14:25:18 +02:00
norman
d7aa5c6d8a Fix type 2012-05-22 14:16:39 +02:00
norman
9024bc8704 Allow to bind a client channel in a seperate step. This can be useful if you want to pass an object on connect to your handlers. Kind of related to #275 2012-05-22 13:35:20 +02:00
norman
5f28d01507 Make sure the test also work on ipv6 interfaces 2012-05-22 10:03:33 +02:00
Jeff Pinner
706d4d8598 SPDY: add SPDY/3 support 2012-05-21 21:58:56 -07:00
Norman Maurer
8d5f29639c Fix checkstyle 2012-05-20 17:35:30 +02:00
Norman Maurer
f120e55855 Merge branch '3' of https://github.com/fredericBregier/netty into 3 2012-05-20 16:56:43 +02:00
Norman Maurer
90fe2ac675 Fix checkstyle 2012-05-20 15:09:05 +02:00
Trustin Lee
b79639f710 SelectorUtil.select() spins to get less latency
- This seems to boost performance dramatically when the number of
  connections is very small.
2012-05-20 18:50:10 +09:00
Frédéric Brégier
5c8c0f2903 remove unecessary super() 2012-05-20 11:33:51 +03:00
Frédéric Brégier
e2facc51ae Change Executor to Timer from Netty, in reference to Issue #345 2012-05-20 11:29:58 +03:00
Frédéric Brégier
82d8d8192e Change Executor to Timer from Netty, in reference to Issue #345 2012-05-20 11:27:20 +03:00
Frédéric Brégier
fdd2a9ccfd Change Executor to Timer from Netty, in reference to Issue #345 2012-05-20 11:26:26 +03:00
Frédéric Brégier
9ba9107267 Change Executor to Timer from Netty, in reference to Issue #345 2012-05-20 11:25:28 +03:00
Frédéric Brégier
f3a7029c0f Change Executor to Timer from Netty, in reference to Issue #345 2012-05-20 11:24:51 +03:00
Frédéric Brégier
21284c430e Change Executor to Timer from Netty, in reference to Issue #345 2012-05-20 11:24:12 +03:00
Norman Maurer
4bf2257d1a Try to add a testcase to reproduce #343 2012-05-19 20:51:25 +02:00
Norman Maurer
33df31d7b7 Fix formatting 2012-05-19 20:39:00 +02:00
Norman Maurer
a2b3fc8367 Remove @Override annotation from interface implements 2012-05-19 20:34:24 +02:00
Frédéric Brégier
16e271325d Proposal for fix related to 1rst issue of #345
Thread.sleep(wait) => Thread.sleep((wait/10)*10)
(see http://www.javamex.com/tutorials/threads/sleep_issues.shtml)
2012-05-19 18:18:31 +03:00
Frédéric Brégier
d2cf217378 Proposal for fix related to 1rst issue of #345
Thread.sleep(wait) => Thread.sleep((wait/10)*10)
(see http://www.javamex.com/tutorials/threads/sleep_issues.shtml)
2012-05-19 18:16:59 +03:00
Norman Maurer
2a05afd418 Remove @Override annotation from interface implements 2012-05-18 22:16:17 +02:00
Norman Maurer
ce391d36f4 Merge branch '3' of https://github.com/blucas/netty into 3 2012-05-18 21:29:28 +02:00
Norman Maurer
17cdc98499 Make sure setHandshakeComplete() is called before the handler is replaced. See #332 2012-05-18 21:27:19 +02:00
blucas
c052f90410 #337 back-port ipfilter and traffic to 3 branch (Fix test package method override) 2012-05-18 18:00:16 +01:00
blucas
31eb8595be #337 back-port ipfilter and traffic to 3 branch (Fix test package) 2012-05-18 17:57:30 +01:00
blucas
98b06c6237 #337 back-port ipfilter and traffic to 3 branch 2012-05-18 17:33:19 +01:00
norman
288ed13b6b Add a replace(..) method to FrameDecoder and also to ReplayDecoder as it now extend FrameDecoder. This also fix #332. 2012-05-18 11:21:29 +02:00
norman
e841e85bdc Make all methods of SslBufferPool public so a subclass can be placed in another package. See #336 2012-05-18 08:04:25 +02:00
norman
231dc284d7 Use the correct ChannlBufferFactory when creating new ChannelBuffers. See #335 2012-05-18 07:43:43 +02:00
norman
ab5939e205 Remove silly import, sorry. See #329 2012-05-18 07:40:24 +02:00
norman
b76c996298 Make sure SslHandler also works if SslBufferPool use non heap ByteBuffers. See #329 2012-05-18 07:38:38 +02:00
norman
09e86c9c9b Fix checkstyle 2012-05-18 07:36:38 +02:00
Jeff Pinner
ba76d5b515 SPDY: fix for mozilla firefox bug 754766 2012-05-17 11:36:57 +09:00
Norman Maurer
0136cbad1e Add missing support 2012-05-15 22:16:27 +02:00
norman
80a2ae635b Use a prelocation size of 1. Thanks to @fredericBregier fir spotting this 2012-05-15 13:53:42 +02:00
norman
f603494424 Make sure CompositeChanneBuffer does not throw a UnsupportedOperationException if discardReadBytes() discard the whole content of the buffer. See #325 2012-05-15 13:14:23 +02:00
Norman Maurer
ab1cf37f7c Only some javadoc 2012-05-14 21:21:52 +02:00
Norman Maurer
94a5f3dbc7 Adjust javadocs as the usage has changed 2012-05-14 20:18:21 +02:00
Norman Maurer
7468340842 Merge pull request #324 from netty/jboss_marshalling
Add JBoss Marshalling support. Yay!
2012-05-14 11:12:37 -07:00
Norman Maurer
7b7c585cf3 Hide the TooBigObjectException and just throw a TooLongFrameException 2012-05-14 20:10:58 +02:00
Norman Maurer
6be409a4f6 Remove whitespace 2012-05-14 18:07:36 +02:00
Norman Maurer
0fa60c82fa Hide ChannelBufferByteInput, ChannelBufferByteOutput and LimitingByteInput 2012-05-14 17:34:11 +02:00
Trustin Lee
ef51cf1c8e Backport pretty hexdump from next-api 2012-05-15 00:15:50 +09:00
norman
1f866fc7ad Add decoder/encoder for jboss marshalling
Use property for version
2012-05-14 17:15:45 +02:00
Trustin Lee
d24c48cbfb Code clean up 2012-05-14 23:06:14 +09:00
Trustin Lee
b6aa509f32 Add ChannelFuture.sync() and syncUninterruptibly()
- Deprecate rethrowIfFailed() which is inferior to the new ones
2012-05-14 22:24:45 +09:00
norman
127b89f276 Fix checkstyle errors 2012-05-14 07:27:36 +02:00
Jeff Pinner
226c2f7243 SPDY: remove frame size limit in frame decoder 2012-05-12 20:00:00 -07:00
vibul
1bf045a7ba Fixed bug where subprotocol not sent by client 2012-05-12 21:06:12 +10:00
Frédéric Brégier
49142f36c8 Merge pull request #318 from fredericBregier/3
3 Issue #317 fix through this commit (addContent ignore initial content)
2012-05-10 11:31:44 -07:00
Frédéric Brégier
614bd93348 Revert for Java 5 compatibility 2012-05-10 21:24:11 +03:00
Frédéric Brégier
11b139ace7 Revert for Java 5 compatibility 2012-05-10 21:21:19 +03:00
Frédéric Brégier
fb5eb0afd9 Revert for Java 5 compatibility 2012-05-10 21:20:08 +03:00
Frédéric Brégier
79f32ecba9 Fix for issue similar to #317 2012-05-10 20:58:57 +03:00
Frédéric Brégier
3cbc0b5f32 remove unecessary .name() in String methods 2012-05-10 20:56:05 +03:00
Frédéric Brégier
eac75ddfbb remove unecessary .name() to Charset in String methods 2012-05-10 20:54:40 +03:00
Frédéric Brégier
b05fe03615 Remove unecessary .name() on Charset in String methods 2012-05-10 20:53:22 +03:00