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
63393bdf
Commit
63393bdf
authored
Feb 18, 1999
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Produce a more specific error message when backend sees EOF on
client connection.
parent
31cce21f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/backend/libpq/pqcomm.c
src/backend/libpq/pqcomm.c
+9
-3
No files found.
src/backend/libpq/pqcomm.c
View file @
63393bdf
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.c,v 1.6
6 1999/02/13 23:15:46 momjian
Exp $
* $Id: pqcomm.c,v 1.6
7 1999/02/18 01:13:26 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -229,7 +229,7 @@ pq_recvbuf()
{
int
r
=
recv
(
MyProcPort
->
sock
,
PqRecvBuffer
+
PqRecvLength
,
PQ_BUFFER_SIZE
-
PqRecvLength
,
0
);
if
(
r
<
=
0
)
if
(
r
<
0
)
{
if
(
errno
==
EINTR
)
continue
;
/* Ok if interrupted */
...
...
@@ -238,7 +238,13 @@ pq_recvbuf()
* if we have a hard communications failure ...
* So just write the message to the postmaster log.
*/
fprintf
(
stderr
,
"pq_recvbuf: recv() failed, errno %d
\n
"
,
errno
);
fprintf
(
stderr
,
"pq_recvbuf: recv() failed, errno=%d
\n
"
,
errno
);
return
EOF
;
}
if
(
r
==
0
)
{
/* as above, elog not safe */
fprintf
(
stderr
,
"pq_recvbuf: unexpected EOF on client connection
\n
"
);
return
EOF
;
}
/* r contains number of bytes read, so just incr length */
...
...
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