Skip to content

[Bug] HTTP server HttpRequest release bug #3284

Closed
@mytang0

Description

@mytang0

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Mac

EventMesh version

master

What happened

HttpRequest reference exception occurs in handlerService.handler

private class HTTPHandler extends SimpleChannelInboundHandler<HttpRequest> {
......
        @Override
        protected void channelRead0(ChannelHandlerContext ctx, HttpRequest httpRequest) throws Exception {
            if (httpRequest == null) {
                return;
            }

            if (Objects.nonNull(handlerService) && handlerService.isProcessorWrapper(httpRequest)) {
                handlerService.handler(ctx, httpRequest, asyncContextCompleteHandler);
                return;
            }
......
}

handlerService.handler has httpRequest release bug

How to reproduce

Test handler message.

Debug logs

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions