Haproxy + netty: Way to prevent exceptions on connection reset?

前端 未结 5 766
庸人自扰
庸人自扰 2021-02-06 14:06

We\'re using haproxy in front of a netty-3.6-run backend. We are handling a huge number of connections, some of which can be longstanding.

Now the problem is that when h

5条回答
  •  甜味超标
    2021-02-06 14:48

    The Tomcat Nio-handler just does:

    } catch (java.net.SocketException e) {
        // SocketExceptions are normal
        Http11NioProtocol.log.debug
            (sm.getString
             ("http11protocol.proto.socketexception.debug"), e);
    
    } catch (java.io.IOException e) {
        // IOExceptions are normal
        Http11NioProtocol.log.debug
    
            (sm.getString
             ("http11protocol.proto.ioexception.debug"), e);
    
    }
    

    So it seems like the initial throw by the internal sun-classes (sun.nio.ch.FileDispatcherImpl) really is inevitable unless you reimplement them yourself.

提交回复
热议问题