GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Build stability fix + .gitignore update by trustin · Pull Request #1 · netty/netty

Conversation

@trustin

@trustin trustin commented Nov 15, 2010

Copy link
Copy Markdown
Member

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
trustin added 2 commits November 15, 2010 18:12
@trustin
Reverted back the changes in DynamicChannelBuffer which made the test…
91d0ce7
… fail
@trustin
Added Version.java to .gitignore because it's generated during the build
e102647
@liyongqi liyongqi mentioned this pull request Dec 21, 2011
client connect exception #138
Closed
@kambatla kambatla mentioned this pull request Mar 13, 2012
Channel.close() can lead to deadlocks in certain usecases #231
Closed
@sureshlalvani sureshlalvani mentioned this pull request Mar 22, 2012
channel.close().awaitUninterruptibly() hangs #205
Closed
@kulya kulya mentioned this pull request Jun 14, 2012
DefaultCookie throws exception if cookie name is "expires" #397
Closed
@vikrum vikrum mentioned this pull request Jul 25, 2012
DefaultEventExecutor: elevated context switching and CPU utilization when server is idle. #473
Closed
@veffen veffen mentioned this pull request Aug 13, 2012
ACCESS_VIOLATION with netty 3.3, 3.4, 3.5 and Java 1.5 #507
Closed
@normanmaurer normanmaurer mentioned this pull request Sep 3, 2012
ChannelException when releasing external resources (Windows, Oracle JDK) #395
Closed
@unbinder unbinder mentioned this pull request Oct 17, 2012
After applying # 327 Workaround for EPollArrayWrapper.epollWait issue still 100 % CPU load #663
Closed
@harry7777777 harry7777777 mentioned this pull request Oct 24, 2012
Netty 3.5.8 breaks app on startup with NPE #679
Closed
@kelaneren kelaneren mentioned this pull request Nov 9, 2012
ConcurrentModificationException in NioEventLoop #654
Closed
@normanmaurer normanmaurer mentioned this pull request Nov 13, 2012
NPE after write an unsupported message type to the Channel #734
Closed
@normanmaurer normanmaurer mentioned this pull request Dec 28, 2012
Excessive CPU usage with CancelledKeyException #857
Closed
@tah-mas tah-mas mentioned this pull request Feb 19, 2013
SSLHandler io.netty.buffer.IllegalBufferAccessException #1054
Closed
This was referenced Apr 23, 2013
UDP DatagramChannel.write does not take remote address anymore causing pipeline creation issues #1282
Closed
channel.write(msg, server) | not accepting ipv6 address #1300
Closed
@adilavismg adilavismg mentioned this pull request Jun 6, 2013
JVM crash #1428
Closed
@s2oBCN s2oBCN mentioned this pull request Aug 4, 2013
EPollArrayWrapper.epollWait 100% CPU Usage #327
Closed
@dieforfree dieforfree mentioned this pull request Sep 13, 2013
NPE at sun.nio.ch.EPollArrayWrapper.setUpdateEvents #1837
Closed
@anyflow anyflow mentioned this pull request Oct 2, 2013
com.jcraft.jzlib(used in HttpContentCompressor) related 2 issues. #1886
Closed
@andsky andsky mentioned this pull request Dec 10, 2013
[nioEventLoopGroup-3-3] WARN io.netty.util.ResourceLeakDetector - LEAK #2010
Closed
@normanmaurer normanmaurer mentioned this pull request Dec 11, 2013
Lot of blocking in buffer allocation code #2056
Closed
@tom1401 tom1401 mentioned this pull request Jan 1, 2014
Deadlock when use SslHandler with SPDY #2093
Closed
@maxammann maxammann mentioned this pull request Mar 8, 2014
Connection ChannelFuture always succeeds (when using epoll) #2292
Closed
@normanmaurer normanmaurer mentioned this pull request Jun 24, 2014
RejectedExecutionException without any shutdown calls #2596
Closed
@dhirajpraj dhirajpraj mentioned this pull request Jun 25, 2014
Netty using a lot of native memory space #2595
Closed
@nechet nechet mentioned this pull request Jun 25, 2014
OSGI: Missing Constraint: Import-Package: sun.security.util; version="0.0.0" #2600
Closed
@rpelissier rpelissier mentioned this pull request Jul 4, 2014
io.netty.buffer.ByteBufInputStream Buffer Leak Netty 4.0.21-Final #2636
Closed
@zaykl zaykl mentioned this pull request Aug 5, 2014
StackTraceSimplifier.simplify cause the JVM hung while "Connection reset by peer" #2735
Closed
@qinliujie qinliujie mentioned this pull request Nov 1, 2023
rebuild nio selector memory leak #13674
Open
@nakulmatta nakulmatta mentioned this pull request Nov 7, 2023
Netty Splice Implementation Issue #13690
Open
@imangry imangry mentioned this pull request Nov 8, 2023
Performance Issue Report: Performance problem with PooledUnsafeDirectByteBuf#writeZero() method when writing little data #13692
Closed
@JaquierM JaquierM mentioned this pull request Nov 15, 2023
Memory leak when using SslHandler #13698
Closed
@arthurzenika arthurzenika mentioned this pull request Nov 21, 2023
io.netty.resolver.dns.DnsNameResolverTimeoutException when application is running Kubernetes #13705
Open
@kjd007 kjd007 mentioned this pull request Dec 1, 2023
use netty as http client, out of memory when run with big payload #13714
Open
@jorferreira jorferreira mentioned this pull request Dec 14, 2023
Version 4.1.102.Final throws java.lang.NoSuchMethodError with JDK8 #13729
Closed
@nodece nodece mentioned this pull request Feb 8, 2024
Failed to close the channel #13831
Closed
@brian-dellisanti-hcl brian-dellisanti-hcl mentioned this pull request Feb 13, 2024
PR #13381 is incompatible with RHEL8 openjdk with FIPS enabled #13840
Closed
@gaeljw gaeljw mentioned this pull request Feb 24, 2024
Thread blocked on InetAddress.getByName because of Netty #13871
Closed
@gouthamp174 gouthamp174 mentioned this pull request Mar 6, 2024
Netty takes 5 mins 30 seconds to close the channel in case of timeout #13888
Open
@saivikas-dharma saivikas-dharma mentioned this pull request Mar 12, 2024
Seeing Memory leak report in Netty Server Codec #13901
Open
@AlexSilver9 AlexSilver9 mentioned this pull request Apr 15, 2024
ZstdConstants thows ExceptionInInitializerError on read-only volumes #13978
Closed
This was referenced Jun 3, 2024
Memory Leak Detected in Netty 4.1.100.Final #14094
Closed
Memory Leak Detected in Netty 4.1.100.Final reactor/reactor-netty#3274
Closed
@nealdi2019 nealdi2019 mentioned this pull request Jun 3, 2024
Intermittent SSL handshake timeout after upgrade to Netty4.1.104 Final #14098
Open
@ouyangli ouyangli mentioned this pull request Jul 2, 2024
LEAK: ByteBuf.release() was not called before it's garbage-collected #14153
Closed
@elise700 elise700 mentioned this pull request Aug 18, 2024
Netty SSLHandler.isEncrypted mistakes SNMP as encrypted #14238
Closed
@ghost ghost mentioned this pull request Sep 6, 2024
Performance Degradation using AdaptiveByteBufAllocator #14272
Closed
normanmaurer added a commit that referenced this pull request Nov 18, 2024
@normanmaurer
Ensure classifier for corretto is always computed the correct way (#1… (
3e705b7
#14475)

…4472)

Motivation:

Corretto does not use "likes" and so we need to ensure we compute it
without these.

Modifications:

Manually compose the classifier to use

Result:

Always use the correct classifier no matter on which linux system we
compile
@lasse42 lasse42 mentioned this pull request Nov 25, 2024
Discard example broken #14499
Closed
normanmaurer added a commit that referenced this pull request Feb 18, 2025
@normanmaurer
SslHandler: Fix possible NPE when executor is used for delegating (#1… (
732a72f
#14833)

…4830)

Motivation:

We need to check if pendingUnencryptedWrites is null before accessing it
as the SslHandler might have been removed in the meantime.

```
io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Cannot invoke "io.netty.handler.ssl.SslHandlerCoalescingBufferQueue.isEmpty()" because "this.pendingUnencryptedWrites" is null
	at io.netty.handler.ssl.SslHandler$SslTasksRunner.wrapIfNeeded(SslHandler.java:1798)
	at io.netty.handler.ssl.SslHandler$SslTasksRunner.safeExceptionCaught(SslHandler.java:1785)
	at io.netty.handler.ssl.SslHandler$SslTasksRunner.resumeOnEventExecutor(SslHandler.java:1896)
	at io.netty.handler.ssl.SslHandler$SslTasksRunner.access$2000(SslHandler.java:1751)
	at io.netty.handler.ssl.SslHandler$SslTasksRunner$2.run(SslHandler.java:1912)
	at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173)
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:405)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:998)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.NullPointerException: Cannot invoke "io.netty.handler.ssl.SslHandlerCoalescingBufferQueue.isEmpty()" because "this.pendingUnencryptedWrites" is null
	at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1503)
	at io.netty.handler.ssl.SslHandler.unwrapNonAppData(SslHandler.java:1469)
	at io.netty.handler.ssl.SslHandler.access$1800(SslHandler.java:170)
	at io.netty.handler.ssl.SslHandler$SslTasksRunner.resumeOnEventExecutor(SslHandler.java:1847)
	... 9 more
```

Modifications:

Add null check

Result:

Fix NPE
normanmaurer added a commit that referenced this pull request Feb 28, 2025
@normanmaurer @LinShunKang LinShunKang
Fix flawed termination condition check in HttpPostRequestEncoder… (#1… (
35a03dd
#14870)

…4799)

…#encodeNextChunkUrlEncoded(int) for current InterfaceHttpData

Motivation:

I am using `HttpPostRequestEncoder` to encode a few request parameters,
but I read **infinite** chunks when the following conditions are met:

1. The number of POST request parameters is greater than or equal to 2.
2. The length of the first request parameter value >
`DefaultHttpDataFactory#minSize`.
3. The length of the first request parameter key + the length of the
request parameter value + 2 = N * `HttpPostBodyUtil#chunkSize`

This issue can be reproduced by modifying the

[length](https://github.com/netty/netty/blob/34011b5f02c52122eccd36ce7cc69502a514d0f1/codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoderTest.java#L454)
variable in the

[HttpPostRequestEncoderTest#testEncodeChunkedContent()](https://github.com/netty/netty/blob/34011b5f02c52122eccd36ce7cc69502a514d0f1/codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoderTest.java#L450)
method to `HttpPostBodyUtil.chunkSize * 3 - 4 - 2`. Normally, this test
method should complete quickly, but when the length variable is set to
`HttpPostBodyUtil.chunkSize * 3 - 4 - 2`, it will never finish.

Modification:

1. Enhance the logic of determining whether the current
`InterfaceHttpData` has been fully read.

Result:

Fix flawed termination condition check.

Co-authored-by: LinShunKang <[email protected]>
Co-authored-by: LinShunKang <[email protected]>
normanmaurer added a commit that referenced this pull request May 30, 2025
@normanmaurer
Kqueue: Delay removal from registration map to fix noisy warnings (#1… (
2d395dd
#15293)

…5279)

Motivation:

In Kqueue it sometimes happened that we did see a WARN that the
registration for a given id could not be found. The reason for this was
that it is possible that the registration was already be cancelled by
the user and so not present anymore. In this case the logs are harmless
but still confusing. We should better ensure we handle it better.

Modifications:

When the user cancels a registration just mark it as cancelled and
remove it from the map one all events are processed.

Result:

Less confusing logging and more correct handling of cancelled
registrations
normanmaurer added a commit that referenced this pull request Jun 24, 2025
@normanmaurer
Testsuite: Make testing with wrapped / direct buffers more random (#1… (
171b33d
#15395)

…5281)

Motivation:

In our testsuite we often just wrapped a byte[] and passed it to the
write method. While this works it also might end up not testing often
with direct buffers. We should make this a bit more random and so cover
direct and heap buffers. The idea popped up when reviewing
#15231

Modifications:

- Add new static helper method that will either return a wrapped buffer
or a direct buffers in a random fashion
- Use this method to allocate buffers

Result:

More random testing of heap / direct buffers
@014-code 014-code mentioned this pull request Jul 3, 2026
[#17039] Fix inflight NameResolver leak when first caller's client is shut down #17048
Open
normanmaurer pushed a commit that referenced this pull request Sep 10, 2026
@doom369
Avoid double promise allocation in SslHandler.wrap() (#17382)
61ab453
Motivation:

Production allocation profiling identified `SslHandler.wrap()`'s
`ctx.newPromise()` as the source of ~79% of sampled
`DefaultChannelPromise` allocations. `wrap()` allocates the promise
before checking whether `pendingUnencryptedWrites` contains another
entry. After the last entry is consumed, the loop may iterate once more,
allocate a `ChannelPromise`, receive null from remove/removeFirst, and
immediately discard the promise.

<img width="1538" height="110" alt="image"
src="https://github.com/user-attachments/assets/e567e5f5-281e-4fcd-8c64-d5e5a320efcd"
/>

Flow:

```
iteration #1
  newPromise()        // useful
  removeFirst() -> buf
  encrypt buf
  queue now empty

iteration #2
  newPromise()        // wasted allocation
  removeFirst() -> null
  break
```


Modification:

Added a guard check `!pendingUnencryptedWrites.isEmpty()` to avoid
unnecessary loop iteration.

Result:

Less garbage in SslHandler for outgoing packets.

```
import io.netty.buffer.ByteBuf;
import org.openjdk.jmh.annotations.Benchmark;

public class SslHandlerWrapBenchmark extends AbstractSslHandlerThroughputBenchmark {

    @benchmark
    public int wrapOneWrite() throws Exception {
        ByteBuf encrypted = doWrite(1);
        try {
            return encrypted.readableBytes();
        } finally {
            encrypted.release();
        }
    }
}
```

```
baseline: 1411.886 B/op
patched:  1336.061 B/op
delta:      75.825 B/op
```
normanmaurer added a commit that referenced this pull request Sep 10, 2026
@normanmaurer @doom369
Avoid double promise allocation in SslHandler.wrap() (#17382) (#17413)
d5a8b9d
Motivation:

Production allocation profiling identified `SslHandler.wrap()`'s
`ctx.newPromise()` as the source of ~79% of sampled
`DefaultChannelPromise` allocations. `wrap()` allocates the promise
before checking whether `pendingUnencryptedWrites` contains another
entry. After the last entry is consumed, the loop may iterate once more,
allocate a `ChannelPromise`, receive null from remove/removeFirst, and
immediately discard the promise.

<img width="1538" height="110" alt="image"

src="https://github.com/user-attachments/assets/e567e5f5-281e-4fcd-8c64-d5e5a320efcd"
/>

Flow:

```
iteration #1
  newPromise()        // useful
  removeFirst() -> buf
  encrypt buf
  queue now empty

iteration #2
  newPromise()        // wasted allocation
  removeFirst() -> null
  break
```

Modification:

Added a guard check `!pendingUnencryptedWrites.isEmpty()` to avoid
unnecessary loop iteration.

Result:

Less garbage in SslHandler for outgoing packets.

```
import io.netty.buffer.ByteBuf;
import org.openjdk.jmh.annotations.Benchmark;

public class SslHandlerWrapBenchmark extends AbstractSslHandlerThroughputBenchmark {

    @benchmark
    public int wrapOneWrite() throws Exception {
        ByteBuf encrypted = doWrite(1);
        try {
            return encrypted.readableBytes();
        } finally {
            encrypted.release();
        }
    }
}
```

```
baseline: 1411.886 B/op
patched:  1336.061 B/op
delta:      75.825 B/op
```

Co-authored-by: Dmytro Dumanskiy <[email protected]>
This was referenced Sep 14, 2026
Http2: Reserve promised stream for PUSH_PROMISE after local RST_STREAM #17471
Closed
cache failure 1233e4a5 #17565
Closed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@trustin
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.