I am trying to provide a custom Logging handler to print request and response details.
The class description says: A ChannelHandler that logs all EVENTS using a logging framework.
Do you understand which event are you trying to print and what format it has?
I would just start with this simple HTTP client example to print the request: https://netty.io/4.1/xref/io/netty/example/http/snoop/package-summary.html
Then read and understand how the pipeline works https://netty.io/4.1/api/io/netty/channel/ChannelPipeline.html
Then make a new inbound handler for the client to print the response and put it in the pipeline after the decoder handler.
You will understand the order of the handlers and when events are send, then you can implement the LoggingHandler.
Hi! I am seeing a behavior that is related to what is mentioned in this post - https://stackoverflow.com/questions/13330937/play-framework-netty-does-not-release-socket.
Basically, the number of outbound tcp connections keep growing. The post says that this was resolved by switching to tomcat.
Anyone aware of this issue? (I’m using Webflux with reactor-netty)
I have developed a project that using ByteToMessageCodec to handle sticky and unpacking TCP/IP message. Although it works , but I am confused about how to Netty Framework to judge whether a ByteBuf should be dropped or accumulated.
For example, in line 38 and 75, it should be accumulated to form a complete data, meanwhile, in line 46, it should be dropped, because it is a invalid package. I used the same way to code it "return". I think it should be coded differently.
Thanks in advanced.
I have been trying, without success, to create a HTTP/2 client with prior knowledge.
My current working client does an upgrade using the following channel handler.
new HttpClientUpgradeHandler( httpClientCodec, new Http2ClientUpgradeCodec(http2ConnectionHandler), 65536 );
I have tried alot of things, but my initial attempt still seems like it should work. The handler I have tried using is:
new Http2ConnectionHandlerBuilder() .server(false) .frameListener(http2ResponseHandler) .frameLogger(logger) .build();
I can see an outbound settings from on both server and client, and thats where the communication ceases.
The server is fine as I have used curl to verify it.
If anyone has any information that would thoughts as to what might be wrong I am all ears. Thanks in advance.
it would be useful to create some docs about it :-)
I am Yuvraj Agrawal currently pursuing B.Tech in CS from Indian Institute of Technology. I am currently having a course in Computer Networks and am highly interested to learn more and contribute in this field.
I am also looking forward to GSOC 2020 and wish to contribute to your organization. I am new to open source development and am currently going through the documentation of netty. Please, help me with some minor bugs or projects to learn your code efficiently.
Hello everyone! I'm a student in Engineering of Computing Systems at Politecnico di Milano (Italy).
I'm interested in the project "Add io_uring based transport", for this year GSoC. I used Java in university project and I'm currently ending my internship as an Embedded Software Engineer where I mostly code in C.
On GitHub I don't see any "good-first-issue" or similar tags, and looks like someone is already working on all the "help-wanted" issues. Any advice on where to start? :)
I'm currently going through the linked PDF and Netty docs, but then I'd like to start contributing.