提交 4a513ab0 编写于 作者: B Bruce Momjian

Mention that resetting the timeout may be wrong on select retry.

上级 6d9d97e8
......@@ -25,7 +25,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.82 2002/10/14 17:33:08 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.83 2002/10/14 18:11:17 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -824,7 +824,12 @@ retry5:
{
/*
* select() may modify timeout argument on some platforms so
* use copy
* use copy.
* XXX Do we really want to do that? If select() returns
* the number of seconds remaining, we are resetting
* the timeout to its original value. This will yeild
* incorrect timings when select() is interrupted.
* bjm 2002-10-14
*/
tmp_timeout = *timeout;
ptmp_timeout = &tmp_timeout;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册