Skip to content

TLSSocketChannel BufferOverflow #177

Closed
@vitorsvieira

Description

@vitorsvieira

Hi guys,

I'm getting the following error after running a process for 40-60 min that writes 5-8 nodes per second.

Failed to enlarge network buffer from 16921 to 16921. This is either because the new size is however less than the old size, or because the application buffer size 8192 is so big that the application data still cannot fit into the new network buffer.

Neo4j: 3.0.0 Enterprise Trial
Driver: 1.0.0
Language: Scala 2.11.8
OS: Centos 7

And adding to that, I found a "TODO" comment in the OFFICIAL driver where this error is being traced.

 case BUFFER_OVERFLOW:
            // Enlarge the buffer and return the old status
            int curNetSize = cipherOut.capacity();
            int netSize = sslEngine.getSession().getPacketBufferSize();
            if ( curNetSize >= netSize || buffer.capacity() > netSize )
            {
                // TODO
                throw new ClientException(
                        String.format( "Failed to enlarge network buffer from %s to %s. This is either because the " +
                                       "new size is however less than the old size, or because the application " +
                                       "buffer size %s is so big that the application data still cannot fit into the " +
                                       "new network buffer.", curNetSize, netSize, buffer.capacity() ) );
            }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions