Re: Support millisecond accuracy for timeouts

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Stevo Slavić <sslavic(at)gmail(dot)com>
Cc: pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Support millisecond accuracy for timeouts
Date: 2011-11-25 03:22:01
Message-ID: CA+0W9LNRGq6GA9uafG8q=hMQajr7RefTBUhHn26gFDTNWdzYDQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On 25 November 2011 16:07, Stevo Slavić <sslavic(at)gmail(dot)com> wrote:

> loginTimeout and socketTimeout connection parameters (
> http://jdbc.postgresql.org/documentation/head/connect.html#connection-parameters
> ) seem to be at 1 second accuracy. Could this be improved to support
> millisecond accuracy? Would like to configure these timeouts at value lower
> then a second.

loginTimeout should already support fractional values; what are you
seeing that makes you think it has whole-second resolution?
socketTimeout looks like a small change to do the same (parse as float
and scale to milliseconds), maybe you can send a patch for that?

Oliver

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Stevo Slavić 2011-11-25 03:26:55 Re: Support millisecond accuracy for timeouts
Previous Message Stevo Slavić 2011-11-25 03:07:35 Support millisecond accuracy for timeouts