Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c
Дата
Msg-id 3DAA5308.3040300@joeconway.com
обсуждение исходный текст
Ответ на Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian wrote:
> So, this is what needs to be dealt with to get it working.
> 

More to the point, why is sub-second precision needed in this function? 
Connection timeout is given to us in whole seconds (1.205 code, i.e. prior to 
the patch in question):
     remains.tv_sec = atoi(conn->connect_timeout);     if (!remains.tv_sec)     {         conn->status =
CONNECTION_BAD;        return 0;     }     remains.tv_usec = 0;     rp = &remains;
 

So there is no way to bail out prior to one second. Once you accept that the 
timeout is >= 1 second, and in whole second increments, why does it need 
sub-second resolution?

Joe



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c