Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3258484d
"...postgres-fd-implementation.git" did not exist on "90562b11354ebd9f88b92c00c38170c190cc219a"
Commit
3258484d
authored
22 years ago
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tv_sec change for connection timeout suggested by author.
parent
2177b6b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+4
-6
No files found.
src/interfaces/libpq/fe-connect.c
View file @
3258484d
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.20
7 2002/10/11 04:12:14
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.20
8 2002/10/11 04:41:59
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1078,7 +1078,8 @@ connectDBComplete(PGconn *conn)
finish_time
=
time
((
time_t
*
)
NULL
)
+
remains
.
tv_sec
;
}
while
(
rp
==
NULL
||
remains
.
tv_sec
>
0
||
remains
.
tv_usec
>
0
)
while
(
rp
==
NULL
||
remains
.
tv_sec
>
0
||
(
remains
.
tv_sec
==
0
&&
remains
.
tv_usec
>
0
))
{
/*
* Wait, if necessary. Note that the initial state (just after
...
...
@@ -1131,10 +1132,7 @@ connectDBComplete(PGconn *conn)
return
0
;
}
if
(
finish_time
>
current_time
)
remains
.
tv_sec
=
finish_time
-
current_time
;
else
remains
.
tv_sec
=
0
;
remains
.
tv_usec
=
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment