Trustin Lee
6d5a332667
Fix a buf in CompositeChannelBuffer.setBytes() where -1 is not returned
2012-08-09 17:50:27 +09:00
Norman Maurer
ce4cf5e619
Merge pull request #495 from CruzBishop/intellij-in-gitignore
...
3: Adds the IntelliJ project directory to .gitignore.
2012-08-08 23:05:09 -07:00
norman
eb8757f1cb
Fix bug which leads to return HttpMessageEncoder implementations null if encoding a HttpChunk which is the last one. This vilates the OneToOneEncoder contract and so leads to a missing notification of the write future. See #493
2012-08-09 08:02:27 +02:00
Norman Maurer
02f53c2b12
Merge pull request #499 from CruzBishop/3-perf
...
Replaces two manual array copies
2012-08-08 22:28:09 -07:00
Cruz Julian Bishop
618ddb42e3
Replaces two manual array copies
...
This is a potential performance boost, but there shouldn't
be too much of a difference.
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-09 09:51:43 +10:00
Cruz Julian Bishop
2f88b9167c
Removes a pointless operation ( +0 )
...
I mean, seriously, this does nothing. At all. :)
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-09 09:02:14 +10:00
Cruz Julian Bishop
e685ce36fc
Removes pointless bitwise operations
...
Examples are << 0 and >>> 0
These do nothing at all, and so, should not be there in the first place
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-09 08:54:54 +10:00
Cruz Julian Bishop
d206ef6d15
Removes unneeded boxing of integers
...
This is the first in a number of commits that fixes static
analysis problems
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-09 08:48:39 +10:00
Cruz Julian Bishop
9e4118cd4a
Adds the IntelliJ project directory to .gitignore.
...
I'm trying to move away from Netbeans, so I thought
I should ignore this instead of accidentally adding it later on
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-09 08:11:17 +10:00
norman
e0a88a0f15
Share some more code
2012-08-01 09:00:13 +02:00
norman
9f285d1819
Make sure the ByteBuffer is copied on NioDatagramWorker.read(..). See #485
2012-08-01 08:43:41 +02:00
Norman Maurer
40685a030d
Use the right ByteOrder for the ByteBuffer on read(..). See #484
2012-07-31 20:35:50 +02:00
Norman Maurer
95cf6a4a71
Use SocketReceiveBufferAllocator to allocate the ByteBuffer which is used to read from the DatagramChannel. See #483
2012-07-31 20:32:03 +02:00
Norman Maurer
7dcae71b09
Merge pull request #481 from netty/receive_buffer
...
Optimize ByteBuffer usage for receiving bytes from the channel. See #480
2012-07-31 10:55:04 -07:00
norman
c28e3c7300
Make the code more compact. See #480
2012-07-30 14:29:50 +02:00
norman
947a12555a
Make the code more compact. See #480
2012-07-30 14:28:28 +02:00
norman
f129ee1e28
Use a percentual calculation to see if a new buffer should get allocated. See #480
2012-07-30 14:18:34 +02:00
norman
d772e3cc74
Fix class name, seems like eclipse did not rename it correctly. See #480
2012-07-30 14:04:33 +02:00
norman
d2fa983d32
Rename class to better reflect its usage. See #480
2012-07-30 13:57:33 +02:00
norman
3070247ca7
Optimize ByteBuffer usage for receiving bytes from the channel. See #480
2012-07-30 13:52:56 +02:00
norman
236b0da210
Allow to set Expires attribute to a date in the past. This may break the behavior of old implementations, so it need some notes in the announcement of the version. See #479
2012-07-30 11:13:42 +02:00
norman
5706d6a2ec
Mark not used queue impls as @deprecated as these are not needed anymore. See #477
2012-07-30 11:10:00 +02:00
Norman Maurer
26b513236f
Replace usage of QueueFactory with ConcurrentLinkedQueue and LinkedBlockingQueue. See #477
2012-07-28 21:35:48 +02:00
norman
5189bb1f3f
Don't close the Selector if no keys are registered. See #471
2012-07-24 15:22:19 +02:00
norman
2c318d397b
[maven-release-plugin] prepare for next development iteration
2012-07-23 12:12:30 +02:00
norman
fd363ce969
[maven-release-plugin] prepare release netty-3.5.3.Final
2012-07-23 12:12:16 +02:00
norman
96182f97e8
Fix race-condition which could lead to a NPE or Exception while register a Channel with a Worker. See #469
2012-07-23 11:21:32 +02:00
norman
36acda0be9
Remove System.err.pritnln(..) statements. See #468
2012-07-23 10:19:35 +02:00
Norman Maurer
a76e8a8e36
Merge pull request #468 from fredericBregier/3
...
Fix issue when SSL is used on top of the Multipart. See #468
2012-07-23 01:18:22 -07:00
Frédéric Brégier
458f983d9d
Fix to standard support with no more forceChunk
2012-07-23 11:11:45 +03:00
Frédéric Brégier
666bf1ffe4
Revert SSL issue on Multipart to force Chunk mode if isMultipart is true
2012-07-23 11:07:26 +03:00
norman
055434dbe1
Merge branch '3' of ssh://github.com/netty/netty into 3
2012-07-23 09:25:47 +02:00
norman
54ad935ec5
Fix race-condition which could lead to a NPE or Exception while register a Channel with a Worker. See #469
2012-07-23 09:25:26 +02:00
Trustin Lee
cb2b2830b2
Fix an infinite loop in CompositeChannelBuffer.setBytes()
...
.. which occurs when a channel is closed during I/O
2012-07-23 15:33:14 +09:00
norman
c059d13108
Fix race-condition which could lead to a NPE while register a Channel with a Worker. See #469
2012-07-23 07:48:03 +02:00
Frédéric Brégier
258f5b00fa
Fix for SSL
2012-07-22 19:38:54 +03:00
Frédéric Brégier
b60a9f6532
Fix for SSL example
2012-07-22 19:36:36 +03:00
Frédéric Brégier
2d6dbd5a92
Fix for SSL example
2012-07-22 19:35:18 +03:00
Frédéric Brégier
a78318149e
Fix for ssl example
2012-07-22 19:33:58 +03:00
Frédéric Brégier
c370fab6fb
Fix issue when SSL is used on top of the Multipat, specially when using Post of a file, since it can change the overall size and therefore giving a real chunk message while it was supposed to not be chunked.
...
Proposal is to allow the user to force chunk mode.
2012-07-22 16:16:22 +03:00
Norman Maurer
7f0f687965
Merge pull request #467 from fredericBregier/3
...
Fix decodeAttribute in HttpPostRequestDecoder to take into account exception from bad format from URLDecoder.decode
2012-07-22 04:40:14 -07:00
Frédéric Brégier
0b2c43f04e
Fix decodeAttribute in HttpPostRequestDecoder to take into account exception from bad format from URLDecoder.decode
2012-07-22 10:59:26 +03:00
Trustin Lee
4e5041d355
Fix typo in test samples
2012-07-19 20:41:35 +09:00
norman
2b7185f10f
Remove unused buggy code
2012-07-18 09:17:15 +02:00
norman
37375708c1
Revert "Use reflection to instance java.util.concurrent.LinkedTransferQueue to make Android not fail. See #458 "
...
This reverts commit 7a87a18c9b
.
2012-07-18 09:11:53 +02:00
Norman Maurer
7a87a18c9b
Use reflection to instance java.util.concurrent.LinkedTransferQueue to make Android not fail. See #458
2012-07-17 21:09:21 +02:00
Trustin Lee
4935f1b5c7
[ #452 ] Fix a build error introduced by ObjectStreamClass.lookupAny()
2012-07-14 13:28:19 +09:00
norman
6c181af6b9
Make sure CompactObjectInputStream fall back to old behavior so make it compatible with older versions of netty which are used on the other end. See #452
2012-07-13 07:19:46 +02:00
Trustin Lee
629cf073e1
[ #453 ] IndexOutOfBoundsException in HttpPostBodyUtil
2012-07-13 13:07:55 +09:00
Trustin Lee
2f3e0fddf2
[ #452 ] Make ObjectDecoder work with JDK 5 again
2012-07-13 13:04:01 +09:00