Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLSSocketChannel BufferOverflow #177

Closed
vitorsvieira opened this issue May 20, 2016 · 11 comments
Closed

TLSSocketChannel BufferOverflow #177

vitorsvieira opened this issue May 20, 2016 · 11 comments
Labels

Comments

@vitorsvieira
Copy link

vitorsvieira commented May 20, 2016

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() ) );
            }
@zhenlineo
Copy link
Contributor

Thanks for this input.

Would it be possible for you to recreate the error in a unit test? Or could you give us more info to help us recreate the error? We did a lot of tests around this buffer but we have not seen this error before.

We would also let you know if we get any result while investigating this error. Thanks again for the feedback.

@technige technige added the bug label May 27, 2016
@RodrigoLimasss
Copy link

Hi guys, any date to solve this bug?

I had the same problem.

Thanks.

@pontusmelke
Copy link
Contributor

@RodrigoLimasss We haven't been able to reproduce it, do you have any details about when you see this?

Regards,
Pontus

@alcarwk
Copy link

alcarwk commented Sep 6, 2016

Hi Guys,

It looks like we are also having this problem. Is it being worked on?

Regards,
Alan

@pontusmelke
Copy link
Contributor

Yes we are looking into it, we will get back to you as soon as possible,

Regards,
Pontus

@pontusmelke
Copy link
Contributor

pontusmelke commented Sep 6, 2016

By the way if you could provide us with more information it would be awesome, OS, jvm-version, how you run the queries and what type of queries would be helpful! @alcarwk

@zhenlineo
Copy link
Contributor

Hi,

It seems there is no more new issue report after the fix we merged on Sep 8 2016. So I am closing this issue now. Pls be free to re-open it if you still have the same problem with the latest drivers (pls specify the driver version when you report problem).

Cheers,
Zhen

@psnmissaka
Copy link

psnmissaka commented Jan 16, 2017

Hi,
I got the error on driver version 1.0.3. This is the second time i came across this problem. Once in a graphenedb hosted database and another in server hosted on Digital Ocean.

@lutovich
Copy link
Contributor

Hi @psnmissaka,

What exact version of the driver are you using? Fix was first released in 1.1.0-M02. Could you please try latest stable 1.1.0?

@psnmissaka
Copy link

Thanks @lutovich, i'm trying 1.1.0 and the error seems to have gone away.

@mixpix3ls
Copy link

mixpix3ls commented Mar 15, 2017

@lutovich We continue to see this issue running v1.1.2:

org.neo4j.driver.v1.exceptions.ClientException: 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.

We are using the neo4j driver in a Scala v2.11 app with Neo4j Enterprise Edition v3.0.4. Please let me know what more information I can provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants