Commit Graph

417 Commits

Author SHA1 Message Date
Trustin Lee
24acfe7008 Remove io.netty.monitor as discussed in #922 2013-01-18 11:08:57 +09:00
Trustin Lee
ad15155f04 Ensure cascaded derivation of a buffer does not result in an infinitely nested buffer. 2013-01-17 13:55:48 +09:00
Trustin Lee
753d0bfbae Remove the memory option previously added to avoid OOME
We don't see OOME anymore
2013-01-10 16:25:41 +09:00
Trustin Lee
eb337ff5a7 Fix various inspection warnings 2013-01-10 15:23:58 +09:00
Luke Wood
c094abad7b [#561] [#912] Add Rxtx transport 2013-01-09 21:32:51 +01:00
Andrei.Pozolotin
20aa2e1968 [#844] [#867] Add UDT transport 2013-01-07 21:06:22 +01:00
Norman Maurer
ccb5409f58 [#884] Split SCTP transport into extra module 2013-01-03 22:19:06 +01:00
Norman Maurer
37a3f2e3b8 [#887] [#866] [#883] Add unified interface for Message oriented protocols and also use direct buffers for them 2013-01-03 18:15:53 +01:00
Norman Maurer
213c1e3d23 Replace sun.net.util.IPAddressUtil usage with own implementation 2012-12-29 18:13:44 +01:00
Trustin Lee
b4fb6a49ee Remove codec-snappy from the module list 2012-12-19 18:28:34 +09:00
Luke Wood
43e40d6af6 Add Snappy compression codec 2012-12-18 21:09:31 +01:00
Norman Maurer
42f6a27235 Allow modify the config even before the channel is registered to the eventLoop 2012-12-14 15:10:10 +01:00
Trustin Lee
8945ce17ad Update license notices and dependencies 2012-12-14 00:38:05 +09:00
Trustin Lee
ad10518fca Fix the incorrect snapshot version number 2012-12-13 22:49:31 +09:00
Trustin Lee
b47fc77522 Add PooledByteBufAllocator + microbenchmark module
This pull request introduces the new default ByteBufAllocator implementation based on jemalloc, with a some differences:

* Minimum possible buffer capacity is 16 (jemalloc: 2)
* Uses binary heap with random branching (jemalloc: red-black tree)
* No thread-local cache yet (jemalloc has thread-local cache)
* Default page size is 8 KiB (jemalloc: 4 KiB)
* Default chunk size is 16 MiB (jemalloc: 2 MiB)
* Cannot allocate a buffer bigger than the chunk size (jemalloc: possible) because we don't have control over memory layout in Java. A user can work around this issue by creating a composite buffer, but it's not always a feasible option. Although 16 MiB is a pretty big default, a user's handler might need to deal with the bounded buffers when the user wants to deal with a large message.

Also, to ensure the new allocator performs good enough, I wrote a microbenchmark for it and made it a dedicated Maven module. It uses Google's Caliper framework to run and publish the test result (example)

Miscellaneous changes:

* Made some ByteBuf implementations public so that those who implements a new allocator can make use of them.
* Added ByteBufAllocator.compositeBuffer() and its variants.
* ByteBufAllocator.ioBuffer() creates a buffer with 0 capacity.
2012-12-13 22:35:06 +09:00
Trustin Lee
9c0b2ad75c Update netty-build to the latest version
From this commit, checkstyle considers an unnecessary empty line as a
violation.
2012-12-04 16:46:46 +09:00
Norman Maurer
85c570505b [maven-release-plugin] prepare for next development iteration 2012-12-03 20:34:05 +01:00
Norman Maurer
17d77ed160 [maven-release-plugin] prepare release netty-4.0.0.Alpha8 2012-12-03 20:33:49 +01:00
Trustin Lee
9018f8e5ca Enable assertions only for Netty classes 2012-11-26 15:01:13 +09:00
Trustin Lee
d7f0351a85 Add JVM options for faster test runs 2012-11-26 14:53:15 +09:00
dantran
4107b08f29 Only generate OSGi manifest only at all-in-on sub module to reduce the complexity to the build 2012-11-19 06:27:18 +01:00
Norman Maurer
524fac5184 [#748] Upgrade to yammer metrics 2.1.4 2012-11-18 12:23:44 +01:00
alexey
5d2b41c094 basic support for socks5 codec 2012-11-17 20:03:16 +01:00
Trustin Lee
b5d83a2407 Upgrade netty-build to 12 2012-11-14 16:32:44 +09:00
dantran
e236f5b77d [#154] [#727] Use maven-plugin-plugin to generate OSGi manifest 2012-11-12 09:15:36 +01:00
Trustin Lee
02a43804d4 Upgrade netty-build to 11 2012-11-10 01:13:38 +09:00
Norman Maurer
313f777491 [maven-release-plugin] prepare for next development iteration 2012-11-05 23:08:39 +01:00
Norman Maurer
57da8222a4 [maven-release-plugin] prepare release netty-4.0.0.Alpha7 2012-11-05 23:08:28 +01:00
Norman Maurer
87cc67306f [maven-release-plugin] prepare for next development iteration 2012-10-28 18:41:25 +01:00
Norman Maurer
7315490fca [maven-release-plugin] prepare release netty-4.0.0.Alpha6 2012-10-28 18:41:17 +01:00
Norman Maurer
afc687436a Revert "[maven-release-plugin] prepare release netty-4.0.0.Alpha6"
This reverts commit 95de4db0f1.
2012-10-28 18:36:15 +01:00
Norman Maurer
16eb4ec713 Revert "[maven-release-plugin] prepare for next development iteration"
This reverts commit e3e0776c20.
2012-10-28 18:35:47 +01:00
Norman Maurer
e3e0776c20 [maven-release-plugin] prepare for next development iteration 2012-10-28 13:06:07 +01:00
Norman Maurer
95de4db0f1 [maven-release-plugin] prepare release netty-4.0.0.Alpha6 2012-10-28 13:05:59 +01:00
Olaf Bergner
ddd0734f43 Issue #65: Provide distribution stats for HashedWheelTimer
First cut at implementing a generic abstraction layer for pluggable
metrics providers. This first cut is closely modeled after Yammer
Metrics. It remains to be seen if it is indeed flexibel enough to
support other providers.
Provide a default implementation of this new abstraction layer
based on Yammer Metrics.
Support pluggable Monitoring Providers using Java 6's ServiceLoader.
Use this new abstraction layer to provide stats on (a) number of
Timeouts executed per second and (b) distribution of absolute
deviation between scheduled and actual Timeout execution time in
HashedWheelTimer.
 * Interface ValueDistributionMonitor, a monitor for histograms.
 * Interface EventRateMonitor, a monitor for measuring the rate per time
   unit of specific events.
 * Interface ValueMonitor, a monitor for tracking an arbitrary datum's
   current value
 * Interface CounterMonitor, a monitor for incrementing/decrementing a
   long value
 * Interface MonitorRegistry, a registry for monitors that serves as the
   interface between Netty and concrete metrics providers as e.g. Yammer
   Metrics.
 * Interface MonitorRegistryFactory, to be implemented by metrics
   providers.
 * Document how to use Netty's new monitoring support in javadocs for
   package io.netty.monitor.
2012-10-25 23:10:15 +02:00
Trustin Lee
820af50b63 [maven-release-plugin] prepare for next development iteration 2012-09-28 17:57:40 +09:00
Trustin Lee
595e1067c7 [maven-release-plugin] prepare release netty-4.0.0.Alpha5 2012-09-28 17:57:04 +09:00
Trustin Lee
b3d568c4d2 de-duplicate plugin versions 2012-09-28 17:45:40 +09:00
Trustin Lee
0f0479547d Upgrade to netty-build 10 2012-09-23 15:40:37 +09:00
norman
3295145e88 [maven-release-plugin] prepare for next development iteration 2012-09-13 10:40:52 +02:00
norman
42685759de [maven-release-plugin] prepare release netty-4.0.0.Alpha4 2012-09-13 10:40:44 +02:00
Trustin Lee
f2538a996d [maven-release-plugin] prepare for next development iteration 2012-08-30 16:47:52 +09:00
Trustin Lee
628c5598b3 [maven-release-plugin] prepare release netty-4.0.0.Alpha3 2012-08-30 16:46:58 +09:00
Trustin Lee
73720c422d [maven-release-plugin] prepare for next development iteration 2012-08-21 15:41:04 +09:00
Trustin Lee
68bef8cb99 [maven-release-plugin] prepare release netty-4.0.0.Alpha2 2012-08-21 15:40:45 +09:00
Trustin Lee
4b1b0b8c18 Fix a build problem where javadoc is not attached to the all-in-one JAR 2012-08-21 15:37:04 +09:00
Trustin Lee
0a43350c66 [maven-release-plugin] prepare for next development iteration 2012-08-21 14:41:45 +09:00
Trustin Lee
56211fee59 [maven-release-plugin] prepare release netty-4.0.0.Alpha2 2012-08-21 14:39:59 +09:00
Trustin Lee
9028b611ce Retry deployment if failed 2012-08-21 14:35:48 +09:00
Trustin Lee
0f0fffe488 Fix release quirks 2012-08-21 14:29:04 +09:00
Trustin Lee
a0e34fd93a [maven-release-plugin] prepare for next development iteration 2012-08-21 14:13:38 +09:00
Trustin Lee
72ccf65093 [maven-release-plugin] prepare release netty-4.0.0.Alpha2 2012-08-21 14:13:17 +09:00
norman
061252e4b4 Allow to config read/write timeout for the AIO transport. See #509 2012-08-14 08:06:54 +02:00
Trustin Lee
b8a60dddd3 Fix m2e errors in Eclipse 2012-08-08 16:30:04 +09:00
Trustin Lee
5a613f379e Make ByteBuf dynamic / Introduce an interface for composite buffers
- Replace ByteBufferBackedByteBuf with DirectByteBuf
- Make DirectByteBuf and HeapByteBuf dynamic
- Remove DynamicByteBuf
- Replace Unpooled.dynamicBuffer() with Unpooled.buffer() and
  directBuffer()
- Remove ByteBufFactory (will be replaced with ByteBufPool later)
- Add ByteBuf.Unsafe (might change in the future)
2012-07-19 20:25:47 +09:00
Trustin Lee
2ef8b23ecd Fix javadoc plugin errors 2012-07-11 00:33:53 +09:00
Trustin Lee
11de993efb Upgrade maven-javadoc-plugin 2012-07-11 00:23:17 +09:00
Trustin Lee
7c2e09f7b2 Ensure tarball pom is updated during release:prepare 2012-07-11 00:11:10 +09:00
Trustin Lee
fbf54a6027 Add sonatype-oss-release profile 2012-07-11 00:00:36 +09:00
Trustin Lee
c588a8a40b Fix the build issues found in the previous release process 2012-07-10 23:54:33 +09:00
Trustin Lee
d801459cb8 [maven-release-plugin] prepare for next development iteration 2012-07-10 23:11:33 +09:00
Trustin Lee
527f2f6c6e [maven-release-plugin] prepare release netty-4.0.0.Alpha1 2012-07-10 23:10:48 +09:00
Trustin Lee
ac364e3bf3 Use the release version rather than the snapshot version when tagging 2012-07-10 23:04:09 +09:00
Trustin Lee
a487da1fcb Update release options 2012-07-10 23:02:44 +09:00
Cruz Julian Bishop
8b5ab52a5b Update dependencies to the latest stable versions 2012-07-07 14:30:25 +09:00
Norman Maurer
c165a38e15 Revert as it should be in nio2 branch "Commit first round of classes to support nio2/async channel api. Still work in progress.. See #396"
This reverts commit 18aaae3c2e.
2012-07-07 14:30:24 +09:00
Trustin Lee
41a9c66f66 fullbuild -> full 2012-07-07 14:28:50 +09:00
Trustin Lee
4c2893e952 Add the tarball module
- Activated only when -Pfullbuild option is set or during release
2012-07-07 14:28:50 +09:00
Trustin Lee
aa3be3e1e8 Build all-in-one JAR on non-fullbuild. 2012-07-07 14:28:50 +09:00
norman
a5b6f1d615 Ignore NetworkChannel class. See #396 2012-07-03 13:52:33 +02:00
Norman Maurer
032912d938 Commit first round of classes to support nio2/async channel api. Still work in progress.. See #396 2012-06-13 22:24:16 +02:00
Trustin Lee
ea5b294ce0 Build all-in-one JAR, xref, javadoc only on full build & release 2012-06-13 13:42:51 +09:00
Trustin Lee
234bd78efa Generate all-in-one source JAR 2012-06-13 10:43:16 +09:00
Trustin Lee
8e55bfbc9c Update dependency versions to the latest versions 2012-06-11 21:38:42 +09:00
Trustin Lee
86cf144b8a Update the checkstyle rules 2012-06-09 05:07:34 +09:00
Trustin Lee
7c20426572 Do not use unreleased checkstyle rules 2012-06-08 19:30:06 +09:00
Trustin Lee
468a3228a4 Fit every line into 120 columns 2012-06-08 19:28:12 +09:00
Trustin Lee
e1a006cac4 Update to the latest checkstyle rules 2012-06-08 16:59:08 +09:00
Trustin Lee
1eced1e9e3 Update license headers 2012-06-04 13:31:44 -07:00
norman
14b2a0db99 Add JBoss Marshalling Encoder/Decoder. See #324 2012-05-30 19:09:54 -07:00
Trustin Lee
528b5c4328 Removed the modules that are not part of 4.0.0.Alpha1
- Will add them back before Beta1 is out
2012-05-27 19:28:28 -07:00
norman
805270c5d9 Finish support for UDP Multicast in UDP. See #216 2012-04-03 12:04:33 +02:00
norman
9b90e3191a Finish support of NIO UDP multicast. This also change the methods to
return a ChannelFuture. See #216
2012-04-02 11:57:32 +02:00
norman
4eac8f6b70 Use jUnit Assume to "ignore" SCTP tests on non-unix operation systems 2012-04-02 07:34:15 +02:00
Norman Maurer
43db6d7050 Enable/Disable sctp tests based on the detected OS 2012-03-30 21:35:58 +02:00
Trustin Lee
5311257490 Upgrade to the latest netty-build version 2012-03-02 10:35:23 -08:00
Trustin Lee
b22ebbe430 Make #211 work with Java 5
* Use java.util.zip.Deflater only when running under Java 7
2012-03-01 15:52:57 -08:00
Trustin Lee
8ab9451086 Fix #208 - SslHandler does not use ChannelBufferFactory to create a new buffer
* Also fixed build failure caused by wrong fork mode
2012-02-29 09:19:18 -08:00
Trustin Lee
2f6d02da60 Run tests in random order 2012-02-28 10:38:45 -08:00
Trustin Lee
97b4876c08 Fix build errors with m2e 2012-02-20 16:01:28 -08:00
Trustin Lee
29cafcf842 Upgrade to netty-build v6 2012-02-07 17:41:12 +09:00
Trustin Lee
3b31daf8a3 Fix missing copyright headers 2012-02-07 17:26:55 +09:00
Trustin Lee
ae3e3e5abe Fix a problem with M2E plugin 2012-02-07 15:30:41 +09:00
Trustin Lee
59e5f2f262 Upgrade to netty-build-4 2012-01-17 18:37:15 +09:00
Trustin Lee
783a7e5f9a Fix all remaining checkstyle violations 2012-01-15 02:08:31 +09:00
Trustin Lee
0007e91923 RXTX -> Rxtx for consistent naming convention 2012-01-15 01:09:17 +09:00
Trustin Lee
26bb9576da Use a separate netty-build release 2012-01-11 21:02:46 +09:00
Trustin Lee
099e689338 Make build success with checkstyle violations temporarilly 2012-01-11 20:22:54 +09:00
Trustin Lee
ebfc4513e0 Apply checkstyle to the build
Please note that the build will fail at the moment due to various checkstyle
violations which should be fixed soon
2012-01-11 20:16:14 +09:00
Trustin Lee
8663716d38 Issue #60: Make the project multi-module
Split the project into the following modules:
* common
* buffer
* codec
* codec-http
* transport
* transport-*
* handler
* example
* testsuite (integration tests that involve 2+ modules)
* all (does nothing yet, but will make it generate netty.jar)

This commit also fixes the compilation errors with transport-sctp on
non-Linux systems.  It will at least compile without complaints.
2011-12-28 19:44:04 +09:00
norman
86d39274c6 Exclude scpt from the build for now until it is moved to an extra
sub-module. See #120
2011-12-12 14:59:34 +01:00
Trustin Lee
c591707592 Attach Javadoc (it really works this time) 2011-12-09 19:05:14 +09:00
Trustin Lee
37f9d16b89 Attach Javadoc 2011-12-09 18:38:49 +09:00
Trustin Lee
85d94a0c4f Attach Javadoc to sync with the central repo 2011-12-09 18:24:31 +09:00
Trustin Lee
c07a984671 Add maven-gpg-plugin to sync with the central repo 2011-12-09 15:47:19 +09:00
Trustin Lee
5351bdcdff Add developers section to pom.xml 2011-12-09 15:22:00 +09:00
Trustin Lee
82aa0969e2 Add organization info 2011-12-09 14:49:10 +09:00
Trustin Lee
91681b5150 Do not expose @author and @version 2011-12-09 14:43:52 +09:00
Trustin Lee
9f41a5a1f8 Update license header / Remove JBoss style 2011-12-09 14:18:34 +09:00
Trustin Lee
6fdb7d9116 org.jboss.netty -> io.netty 2011-12-09 12:38:59 +09:00
Trustin Lee
84902a6e7a Update compiler options 2011-12-09 12:26:45 +09:00
Trustin Lee
6d307734f1 Update enforcer rules and project URL 2011-12-09 12:24:14 +09:00
Trustin Lee
57b5c20433 Change groupId to io.netty / inherit Sonatype OSS 2011-12-09 11:52:12 +09:00
Trustin Lee
2a764d9d9f Make build independent from JBoss.org M2 repository 2011-12-09 11:38:29 +09:00
Jestan Nirojan
0a99e8bb57 prepared merge with upstream 2011-12-08 00:27:23 +05:30
Jestan Nirojan
724ca7a913 merged with master 2011-12-07 23:17:11 +05:30
Jestan Nirojan
40e6a73e94 Merge branch 'master' of github.com:jestan/netty 2011-12-07 22:53:33 +05:30
Jestan Nirojan
3379a4c25d 1)replaced all netty link transfer queue by java 7 link transfer queue to avoid high cpu usage 2)optimized selector loop 2011-12-06 19:40:22 +05:30
Trustin Lee
a9a713ddcf Remove DocBook from build 2011-12-03 20:02:25 +09:00
vibul
55940f500e Added fix for m2eclipse error "Plugin execution not covered by lifecycle configuration" in pom.xml. See issue #87. 2011-12-02 15:29:14 +11:00
Jestan Nirojan
78c949f282 Merge remote branch 'upstream/master' 2011-12-02 03:39:09 +05:30
Jestan Nirojan
ccbe3dd2f8 1)tested sctp with IBM JDK 7 2)fixed NPE on sctp notification event constructor 3)added maven exec plugin 2011-11-26 02:52:01 +05:30
Trustin Lee
bbd251baed Fix build errors 2011-11-24 12:17:09 +09:00
Trustin Lee
5abd23d3ba 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

Conflicts:

	src/main/java/org/jboss/netty/example/localtime/LocalTimeProtocol.java
2011-11-24 11:10:53 +09:00
Trustin Lee
bb5bbdc99e Upgrade to JUnit 4.10 2011-10-31 15:19:50 -07:00
Trustin Lee
3b7f55dc35 Testing e-mail notification (2) 2011-10-22 20:53:19 -07:00
Trustin Lee
ce3240d3a4 Testing e-mail notification 2011-10-22 20:51:43 -07:00
Jestan Nirojan
92ccd2fbfa fixed sctp package compilation errors 2011-04-23 14:03:52 +05:30
Trustin Lee
a722f64991 Fixed indentation 2011-04-18 17:50:29 +09:00
iainmcgin
12d2c8ad2e NETTY-246: adding implementation to netty trunk for the 4.0.0 release. In order to get the tests to pass,
I had to change the surefire fork policy from "never" to "once", as it seems the classloader settings used
by the maven process were preventing jmock from mocking package private interfaces.
2011-04-18 17:44:54 +09:00
Trustin Lee
4144b43735 NETTY-386 Support for serial connections using RXTX
Contributed by Daniel Bimschas and Dennis Pfisterer
Initial import after fixing compiler warnings and removing log
messages and shut-down hooks
2011-02-24 17:26:18 +09:00
Trustin Lee
93d9461ff5 Fixed broken SCM URL in pom.xml 2011-02-07 21:31:32 +09:00
Trustin Lee
1dd30c8abe Upgraded the enforcer plugin and updated the rule 2011-02-07 21:18:00 +09:00
Trustin Lee
098eacc135 Updated the dependency and plugin versions 2011-02-07 21:05:49 +09:00
Trustin Lee
b53742e366 Added Main-Class property to the manifest for easier version check 2011-02-02 13:16:49 +09:00
Trustin Lee
23c100190c Set buildNumber to 'unknown' when built out of git repository 2011-01-12 18:59:49 +09:00
Trustin Lee
a719e88856 Fixed issue: NETTY-371 OSGi Manifest requires Bundle-BuddyPolicy for
object deserialization

Added proper BuddyPolicy properties to the manifest
2011-01-12 18:32:58 +09:00
Trustin Lee
1c067a5c21 Changed SCM URLs 2011-01-11 18:42:34 +09:00
Trustin Lee
c5a29f00a4 Fixed build issues
* Replaced the buildnumber plugin with antrun exec tag to generate the build number correctly.
* Fixed a problem where MANIFEST.MF is lost
2011-01-11 18:20:08 +09:00
Trustin Lee
e83b5503da Fixed NETTY-376 Manifest not present in the first entry of the zip 2011-01-04 14:22:35 +09:00
Trustin Lee
d3fb52e11d 4.0 requires Java 6 or above 2010-11-12 09:42:43 +09:00
Trustin Lee
f4e83e0421 Begin 4.0 2010-06-30 05:31:48 +00:00
Trustin Lee
14a82cb6df [maven-release-plugin] prepare for next development iteration 2010-06-23 05:28:05 +00:00
Trustin Lee
ce2736b4ef [maven-release-plugin] prepare release netty-3.2.1.Final 2010-06-23 05:27:36 +00:00
Trustin Lee
5f3fe47392 Excluded examples from the JAR 2010-06-21 08:12:08 +00:00
Trustin Lee
62746e3e5e [maven-release-plugin] prepare for next development iteration 2010-05-28 05:15:50 +00:00
Trustin Lee
e2ac42975c [maven-release-plugin] prepare release netty-3.2.0.Final 2010-05-28 05:13:51 +00:00
Trustin Lee
688ec9d927 removed google analytics 2010-05-07 11:22:19 +00:00
Trustin Lee
65ee3d5579 Inserted Google Analytics code 2010-05-07 11:14:53 +00:00
Trustin Lee
4fc22e1a26 [maven-release-plugin] prepare for next development iteration 2010-05-07 01:22:44 +00:00