Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb2d7a2

Browse files
committed
Ok, I think I've gotten this figured out now. I saw this comment in
pqcomm.c, switched the ERROR logs to COMMERROR logs and it all works.I've attached a patch to be-secure.c that fixes all my problems.Nathan Mueller
1 parent1b42ad7 commitfb2d7a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎src/backend/libpq/be-secure.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.18 2002/12/13 05:51:29 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.19 2002/12/14 18:39:14 momjian Exp $
1515
*
1616
* Since the server static private key ($DataDir/server.key)
1717
* will normally be stored unencrypted so that the database
@@ -289,10 +289,10 @@ secure_read(Port *port, void *ptr, size_t len)
289289
break;
290290
caseSSL_ERROR_SYSCALL:
291291
if (n==-1)
292-
elog(ERROR,"SSL SYSCALL error: %s",strerror(errno));
292+
elog(COMMERROR,"SSL SYSCALL error: %s",strerror(errno));
293293
break;
294294
caseSSL_ERROR_SSL:
295-
elog(ERROR,"SSL error: %s",SSLerrmessage());
295+
elog(COMMERROR,"SSL error: %s",SSLerrmessage());
296296
/* fall through */
297297
caseSSL_ERROR_ZERO_RETURN:
298298
secure_close(port);
@@ -339,10 +339,10 @@ secure_write(Port *port, const void *ptr, size_t len)
339339
break;
340340
caseSSL_ERROR_SYSCALL:
341341
if (n==-1)
342-
elog(ERROR,"SSL SYSCALL error: %s",strerror(errno));
342+
elog(COMMERROR,"SSL SYSCALL error: %s",strerror(errno));
343343
break;
344344
caseSSL_ERROR_SSL:
345-
elog(ERROR,"SSL error: %s",SSLerrmessage());
345+
elog(COMMERROR,"SSL error: %s",SSLerrmessage());
346346
/* fall through */
347347
caseSSL_ERROR_ZERO_RETURN:
348348
secure_close(port);
@@ -678,7 +678,7 @@ open_server_SSL(Port *port)
678678
!SSL_set_fd(port->ssl,port->sock)||
679679
SSL_accept(port->ssl) <=0)
680680
{
681-
elog(ERROR,"failed to initialize SSL connection: %s",SSLerrmessage());
681+
elog(COMMERROR,"failed to initialize SSL connection: %s",SSLerrmessage());
682682
close_SSL(port);
683683
return-1;
684684
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp