Questions tagged [netty4]
44 questions
3
votes
2 answers
Can not find io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider
I am coding with Vertx, when I run Junit test under my laptop (MacOs), all unit tests failed, in fact, when these unit tests are run successfully under Linux.
This is my Java 11 version:
java version "11.0.12" 2021-07-20
IBM Semeru Runtime Certified…

Joe
- 623
- 7
- 16
3
votes
1 answer
AWS's Proxy Protocol v2 Breaking Application Due to Absence of PSH Flag
I have a network application built using Netty. The application is behind Amazon network load balancer.
I now want to be able to retrieve the original client IP address, so I turned on the Proxy Protocol v2 setting on the network load…

dade
- 3,340
- 4
- 32
- 53
2
votes
1 answer
Netty Server HttpContentDecompressor is removing content-encoding header from the request, can we configure it to not do so?
I am using netty io.netty.handler.codec.http.HttpContentDecompressor by adding it into pipeline in my spring boot server, its decompressing the incoming request successfully but also removing the 'content-encoding:gzip' header from request. Is there…

Vaibhav
- 169
- 6
2
votes
1 answer
What is the replacement for ChannelHandlerContext.sendUpstream in Netty 4
I am working on upgrading an application using Netty 3 to Netty 4. A lot of the handlers currently have code that look like this:
public class SomeHandler extends SimpleChannelUpstreamHandler {
@Override
public void channelOpen(final…

Finlay Weber
- 2,989
- 3
- 17
- 37
1
vote
0 answers
HttpContentCompressor is not compressing response
I am using below code where I have added netty's HttpContentCompressor to compress the response coming out from my server. How ever when my server returns a response i.e. a string "test" HttpContentCompressor is not encoding it and returning it as…

Vaibhav
- 169
- 6
1
vote
0 answers
netty ssl key exchange mode,how to use TLS-PSK mode with netty
We are using Netty4, and we plan to expand SSL security mode of Netty, I am not sure whether Netty4 supports PSK key exchange mode, have the guidance of those who know this aspect, thank you very much

igogoxfox
- 19
- 2
1
vote
0 answers
Accepting both http and https protocols on a single port, with SNI support on a Netty server
As far as I know,
OptionalSslHandler is built for handing both protocols on the same port, while,
SniHandler is made for SNI handling.
Both handlers seem to handle all the complex handshake and negotiate steps, then inject a sslHandler in the…

Harry
- 23
- 2
1
vote
1 answer
Why does ChannelOutboundHandlerAdapter have a read method if it s means for outbound IO operations
As far as I understand, in Netty ChannelOutboundHandlerAdapter is meant for outbound IO operations: that is writes, but a class implementing ChannelOutboundHandlerAdapter can also implement a read method, which seems incorrect to me, why should a…

Finlay Weber
- 2,989
- 3
- 17
- 37
1
vote
1 answer
How to configure EventExecutor in Netty 4 like ExecutionHandler in Netty 3
Netty 3 makes use of ExecutionHandler which gives the ability to configure the system by passing in an Executor. For example an OrderedMemoryAwareThreadPoolExecutor can be used which allows ability to configure things like corePoolSize,…

Finlay Weber
- 2,989
- 3
- 17
- 37
1
vote
1 answer
How to fix AttributeKey leading to IllegalArgumentException in Netty 4
I am porting a Netty 3 application to Netty 4. The Netty 3 application uses Attachement to attach objects to the context.
Reading New and noteworthy in 4.0 I see Attachment has been removed and replaced with AttributeKey/AttributeMap.
The problem is…

Finlay Weber
- 2,989
- 3
- 17
- 37
0
votes
1 answer
netty Channel is connecting to remote servers but not localhost/127.0.0.1
I'm writing code in netty that should connect to a remote server.
Below is my complete code.
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelHandler;
import…

user51
- 8,843
- 21
- 79
- 158
0
votes
0 answers
In Java, is the AsynchronousFileChannel open() method a "blocking" operation?
I need to open an async file channel in a Netty handler. Do I need to do that on a background thread?
It seems logical that AsynchronousFileChannel's open() method would be a blocking operation but I am unable to find any confirmation.
I have…

Gregg Saffell
- 23
- 4
0
votes
0 answers
Apache-Camel. FluentProducerTemplate with netty-http component. Request method with timeout is not working
Situation is like below.
I'm trying to send request to wrong IP and wanna catch request time-out exception.
Eventhough I sent request to wrong IP, but it is ended normally.
Source is like below.
try {
FluentProducerTemplate fluentProducerTemplate…

007
- 61
- 4
0
votes
0 answers
Netty server handler after using wait is not receiving any response from the client
We have a project in which we've the server side in JAVA and client side in C. For the socket communication we are using Netty on the server side. Once the server is up, the client sends a file name through a message packet to the server. On…

devd
- 370
- 10
- 28
0
votes
1 answer
Using Netty Server for gRPC results in Out of Memory Error
Using Netty Server Builder for gRPC Server & running into Out of Memory error where direct memory size is exceeding the allocated size of 1.2g.
Tried using both pooled byte buffer allocator as well as unpooled byte buffer allocator. Looks like …

user2649857
- 11
- 1
- 2