Questions tagged [netty4]
44 questions
0
votes
1 answer
Trying to use netty4-http as https secure client in camel 2.x
In my blueprint xml I have set...
…

Mike Oliver
- 163
- 1
- 3
- 14
0
votes
1 answer
Determine which TLS version was negotiated by client to a netty server
I'm using a netty server. I don't want to enforce a specific TLS version for customers but I do want to know which TLS version is negotiated for each incoming connection to the server.
I can't find any way to determine that from the ssl handshake…

Daniel
- 546
- 1
- 6
- 15
0
votes
1 answer
Netty, reading message results with IllegalReferenceCountgException refCnt: 0
I am new to netty and I try to receive byte response from a server (non-netty). However, I belvie I missundersteand the reference count. While reading the response I am running into the IllegalReferenceCountException: refCnt:0
What I do is not that…

WinterMute
- 145
- 2
- 11
0
votes
1 answer
Netty: how to calculate client request queuing time
We have Netty based HTTP server (build on Spring WebFlux) and need to implement a kind of client request statistics (request processing time per type, request queuing time, etc). Could you please advice what is the right way to calculate request…

Vadim Lotarev
- 97
- 8
0
votes
1 answer
Two Bundles with netty4-http one server and one client serve loads client doesn't
The client camel context that follows loads and runs just fine. This atomic service accepts requests from other bundles via dicrect-vm to connect to an external REST server.

Mike Oliver
- 163
- 1
- 3
- 14
0
votes
1 answer
Blueprint bundle is waiting for dependencies [(&(component=netty4-http)(objectClass=org.apache.camel.spi.ComponentResolver))]
I have the following camel context that builds and installs on karaf ok, at least no errors.
Receives Current Grade from Camu
The request raw from bpms
…

Mike Oliver
- 163
- 1
- 3
- 14
0
votes
1 answer
What is the difference between the ByteBuf retrieved from Context versus any other ByteBuf
I found out that using ByteBuf derived from ChannelHandlerContext behaves exactly the same as when using ByteBuf created via Unpooled for example.
That is, both of these two works:
ctx.write(ctx.alloc().buffer().writeBytes("Hello…

Finlay Weber
- 2,989
- 3
- 17
- 37
0
votes
1 answer
Difference between writing a ByteBuf and an ordinary Java Objects
I noticed it is possible to eother write data which is an instance of ByteBuff or plain Java Objects when using Netty.
As can be seen in the HAProxyClient
On that file you have
HAProxyMessage message = new HAProxyMessage(
…

Finlay Weber
- 2,989
- 3
- 17
- 37
0
votes
1 answer
How to write to channel on ReadTimeoutHandler before channel closes in Netty 4
The behaviour of ReadTimeoutHandler seems to have changed in Netty 4 compared with Netty 3. In Netty 4 when the timeout fires, Netty not only raises a ReadTimeoutException but also closes the channel. This was not the case before. In Netty 3, the…

dade
- 3,340
- 4
- 32
- 53
0
votes
1 answer
How to perform integration testing in Netty 4
In Netty in Action, I read about EmbeddedChannel which can be used for unit testing.
My use case now goes beyond unit testing, and more of integration testing. I want to be able to start the server and then, and within the test, configure/modify the…

Finlay Weber
- 2,989
- 3
- 17
- 37
0
votes
1 answer
What is the replacement of DefualtChannelFuture in Netty 4
In Netty 3 there is the DefualtChannelFuture class.
It is used to create an instance of ChannelFuture. What would the replacement be in Netty 4?

Finlay Weber
- 2,989
- 3
- 17
- 37
0
votes
1 answer
What is the difference between operations on Channel vs operations on ChannelHandlerContext
I am just starting out with Netty and I have a question about Channel and ChannelHandlerContext
From what I have read so far, Channel can be seen as an abstraction over underlying socket where IO happens, while ChannelHandlerContext is an object…

Finlay Weber
- 2,989
- 3
- 17
- 37
0
votes
1 answer
Replacement for ChannelEvent and CustomEvent in Netty 4
I am working on upgrading an Netty3 application to Netty4. The application currently uses custom events by extending the ChannelEvent class and I am not sure how to translates this to Netty 4 because ChannelEvent seem to have been gone in Netty4,…

Finlay Weber
- 2,989
- 3
- 17
- 37
0
votes
0 answers
Messages is delayed by a few seconds, I use writeandflush to write
When the client is sending me some messages, I deal message and use writeAndFlush to reply to the client, sometimes delaying for a few seconds. What happens? Is it blocked?