Coder Social home page Coder Social logo

Comments (8)

pratikpparikh avatar pratikpparikh commented on May 22, 2024 1

@vietj can this be made part of 0.9.1 as this is very important to make sure that connection timeout is handled properly.

from vertx-sql-client.

vietj avatar vietj commented on May 22, 2024 1

we will have this when we reuse the current pool implement from vertx

from vertx-sql-client.

vietj avatar vietj commented on May 22, 2024 1

I'm scheduling this for 4.0

from vertx-sql-client.

vietj avatar vietj commented on May 22, 2024 1

and for connect timeout there are chances it works correctly although one should check

from vertx-sql-client.

Globegitter avatar Globegitter commented on May 22, 2024

@vietj what is the status on this? I can see one can already set a idleTimeout through PgConnectOptions, is that then also respected by the pool? But as far as I can see a connection timeout itself is still missing. Can you also confirm that?

Also is connectTimeout on PgConnectOptions respected by the pool?

And I agree with @pratikpparikh having a connection timeout would be important to have.

from vertx-sql-client.

Globegitter avatar Globegitter commented on May 22, 2024

@vietj that is great news, but if now I set:

PgPool.pool(
        pgConnectOptionsOf(
            host = "localhost",
            port = 5432,
            database = "postgres",
            user = "postgres",
            password = "postgres",
            connectTimeout = 1000,
            idleTimeout = 1000,
            idleTimeoutUnit = TimeUnit.MILLISECONDS
        ),
        poolOptionsOf()
    )

then currently (v3.8.5) connectTimeout and idleTimeout is ignored by the pool?

from vertx-sql-client.

vietj avatar vietj commented on May 22, 2024

those are connection settings, not pool settings. Those should have effect though, i.e the connection should be closed after 1s of TCP inactivity whehter it's int he pool or not.

from vertx-sql-client.

Globegitter avatar Globegitter commented on May 22, 2024

Cool thanks for the quick responses, will give it a try and report back here.

from vertx-sql-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.