Questions tagged [netty]

An open source asynchronous event-driven network application framework written in Java. It is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients

0
votes
0answers
20 views

Netty shutdown/Stop UDP server

I'm trying to create Netty UDP listener. The problem I faced is that I can't stop udp server like tcp, the udp always is running, even with shutdowngracefully called, the only way to stop it is by ...
0
votes
0answers
18 views

Netty - problems performing TLS handshake with an iOS device

I am working on a Java alternative to libimobiledevice (not a wrapped or binding over the native libs).I decided it makes sense to use Netty (v4.1.12) as the communication layer, due to the nature ...
0
votes
0answers
15 views

Netty doesn't return response to camel after decoding

I have a camel route:from("netty4-http:http://localhost:2222").to("netty4:tcp://remotehost:2903?sync=true&synchronous=true&allowDefaultCodec=false&clientInitializerFactory=#...
0
votes
1answer
24 views

Does ChannelInboundHandlerAdapter and ChannelOutboundHandlerAdapter effects the sequence of running encoder and decoder in netty4?

I am using netty4 to implement encoder and decoder.When I am extending decoder of type ChannelInboundHandlerAdapter and encoder of type ChannelOutboundHandlerAdapter, then what should be its running ...
0
votes
0answers
10 views

Java ICAP File Transfer Problem, File Is Corrupted

I am working with an ICAP github project located here which is based off JBoss Netty codecs. My current problem which likely stems from my inability to properly understand netty handlers and ...
0
votes
1answer
24 views

Netty 4.0 ByteBuf retain() use

I'm trying understand decode aTrack protocol based on https://github.com/traccar/traccar implementation, they use Netty for their platform implementation, but I don't underestand which is the use of ...
0
votes
1answer
24 views

Which encoder and decoder of netty4 should be used?

I am sending a hex string to a netty4 socket of which first 4 bytes represent the length of the actual message.Tasks that I want to achieve:First Decoder should run a decode the string by reading ...
0
votes
1answer
26 views

Passing a value to the main program from a channel handler in netty

I am writing a client using netty for handling custom protocol. I have defined a handler which extends SimpleChannelInboundHandler which handles both sending and receiving message.public class ...
0
votes
1answer
41 views

Why is my ByteToMessageDecoder decode method never called?

I'm trying to get to grips with Netty. I'm using HTTP for my example here (I know there are HTTP (de/en)coders in the library but the point of this exercise for me is to get my head around how the ...
0
votes
1answer
24 views

Apache Camel, Netty4 endpoint as client - memory leakage

I'm quite new to Apache Camel and trying to bring some routes into action.I have a TCP server which serves large JSON-Messages (up to ~30-50kB in size, where i do not have any control about the ...
0
votes
1answer
20 views

Netty4: IdleStateHandler doesn't fire event in EmbeddedChannel

I want to test the IdleStateHandler in a EmbeddedChannel, but it doesn't work. This is my code:public class IdleStateHandlerTest {public static void main(String[] args) throws ...
1
vote
1answer
77 views

Webflux + Netty NIO performance decrease ~30 times compared to traditional IO

We are having problems in network transfer while using Spring Boot 2.0, Webflux 5.0.7 and Netty 4.1.25. We want to transfer 100000 items serialized as JSON (roughly 10Mb of network traffic) to 1 ...
0
votes
0answers
29 views

Twisted in Python VS Netty in Java

When develop a tcp server, it's I/O bound, which framework's performance could be better? Or their performance is almost the same?
0
votes
0answers
25 views

How to express TCP-server socket as consumer endpoint with Camel and netty4?

I want to create a TCP proxy using Apache Camel and the netty4 component.How do I express, that the consumer endpoint (.to(...)) should be a TCP server socket - and not a client socket?More ...
0
votes
0answers
21 views

Netty file descriptor leak

OS: Ubuntu 14.04JVM: 1.8.0_181Netty: 4.1.8 (not using the native epoll implementations currently .. looking to move to that)We've only managed to find a few nodes exhibiting the behavior and have ...
0
votes
1answer
39 views

Netty TCP Ping Pong performance numbers using EPoll

I'm considering Netty for my tier 1 US bank algo trading project. However I cannot find any performance numbers for a simple ping-pong TCP test:Client sends a 64-byte message to ServerServer ...
1
vote
1answer
36 views

Getting Stackoverflow in netty Encoder

I want to send a custom message of my own before sending actual one, the first time channel is initialized. I have:public class MyClientInitializerFactory extends ClientInitializerFactory {@...
1
vote
0answers
41 views

Async Http Client + Netty

I am facing issues benchmarking the async http client (version - 2.4.3) and getting the following exception while running the code pasted below. Also just FYI I am new to Netty as well as async-http-...
-3
votes
2answers
32 views

Can anyone explain netty ChannelHandlerContext flush()?

Could someone explain what exactly netty method ChannelHandlerContext flush() does? Will it immediately send all messages through the network stopping any defined processing effectively bypassing any ...
2
votes
1answer
58 views

Real time aplicaton, Reactor Netty vs Netty

I know the second one is based on the first one but I'm curious about what are differences except API? Is it possible to establish push model connection with Reactor? I'm going to create a real-time ...
0
votes
1answer
16 views

Catching Exception and Transferin Exception In Netty

I am trying to recognize any exception after client receive or send message to server or from server. And If any exception happens, I want to close connection and say that "Connection has been closed ...
1
vote
2answers
23 views

Netty websocket and Rest in same Java application

I have an exisiting Java application which is exposing REST services. I want to add a new feature in the same application to handle web socket requests (using netty) along with the exisiting REST ...
0
votes
0answers
26 views

Packet loss on Channel Handler Context on Netty

The problem: I'm having some packet loss internally. I mean internally because did capture all the traffic with wireshark and confirm the packet arrived at server, but did not arrive at channelRead0 ...
0
votes
1answer
29 views

Connection time out in Cassandra

We have a single node Cassandra and time to time we get the following error:info_outline   04:32:41.354 octopus-cassandra-standalone /var/log/application.log docker/d9cce2283ebc[902]: INFO [...
1
vote
0answers
33 views

SSL/TLS configuration with certificate

I encountered a problem with TSL/SSL configuration. Everything is configured like in the documentation https://cloud.spring.io/spring-cloud-gateway/multi/multi__tls_ssl.htmlserver:port: 8080...
0
votes
1answer
20 views

Is there a common tcp/ip protocol decoder?

My situation is:I have a website, it is an iot platformI use netty to make a tcp serverusers can add devices and define tcp/ip protocols for their devices, for example,1,2,3,4\n is a protocol use ...
0
votes
0answers
47 views

spring boot 2, spring 5, netty, reactive

I use spring boot 2, webflux. My set up is microservices orchestrated by docker swarm. Each ms sends requests by service name and port. It looks something like:http://cool_service_1:3434/helloflux...
1
vote
1answer
26 views

How to deploy a Netty Server?

I've developed a Netty application that allows connections through TCP from various devices. However i'm not entirely sure what is the best way to deploy the application for production use. Right now ...
-1
votes
0answers
24 views

Netty Exception causes after disconnect

When channel closes, Netty throws an Exception.My code has exception handler but this exception causes after disconnecting, so stack traces are printed without handling.An exceptionCaught() event ...
0
votes
1answer
28 views

Sending and receiving different type of packets using Netty

I want to implement sending and receiving packets (I use this in OIO)Step 1: Server -> Client, Packet AStep 2: Client -> Server, Packet BStep 3: Server -> Client, Packet CWhen server ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,