Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty 12.0.x blocks server-to-server requests (and in case of 12.0.1 issues warning: WARN :oeju.Blocker:qtp686466458-43: Blocking.Callback incomplete)

Does your `_socketCreator = new SocketCreator` return an Endpoint 100% of the time?

Joakim Erdfelt / joakim@xxxxxxxxxxx

On Mon, Sep 11, 2023 at 7:15 AM Silvio Bierman <sbierman@xxxxxxxxxxxxxxxxxx> wrote:
Hello Joakim,

I found the piece of code that is responsible for the warning. Our Servlet overrides init and service methods thusly:

        override def init(cfg : jakarta.servlet.ServletConfig) =
            _config = cfg
            _socketContainer = JettyWebSocketServerContainer.getContainer(_config.getServletContext)
            _socketCreator = new SocketCreator

        override def service(request : HttpServletRequest,response : HttpServletResponse)
            if (_socketContainer == null) super.service(request,response)
            else if (!_socketContainer.upgrade(_socketCreator,request,response)) super.service(request,response)
            else if (!response.isCommitted) super.service(request,response)

and the call to _socketContainer.upgrade causes the warning to be printed. I do not yet know why this is but I will look into this.



Back to the top