Skip to content

Commit 6792263

Browse files
committed
Remove no-longer-useful SSL-specific Port.count field.
Since we removed SSL renegotiation, there's no longer any reason to keep track of the amount of data transferred over the link. Daniel Gustafsson Discussion: <FEA7F89C-ECDF-4799-B789-2F8DDCBA467F@yesql.se>
1 parent 14cca1b commit 6792263

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,6 @@ be_tls_open_server(Port *port)
447447
return -1;
448448
}
449449

450-
port->count = 0;
451-
452450
/* Get client certificate, if available. */
453451
port->peer = SSL_get_peer_certificate(port->ssl);
454452

@@ -549,7 +547,7 @@ be_tls_read(Port *port, void *ptr, size_t len, int *waitfor)
549547
switch (err)
550548
{
551549
case SSL_ERROR_NONE:
552-
port->count += n;
550+
/* a-ok */
553551
break;
554552
case SSL_ERROR_WANT_READ:
555553
*waitfor = WL_SOCKET_READABLE;
@@ -609,7 +607,7 @@ be_tls_write(Port *port, void *ptr, size_t len, int *waitfor)
609607
switch (err)
610608
{
611609
case SSL_ERROR_NONE:
612-
port->count += n;
610+
/* a-ok */
613611
break;
614612
case SSL_ERROR_WANT_READ:
615613
*waitfor = WL_SOCKET_READABLE;

src/include/libpq/libpq-be.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ typedef struct Port
192192
#ifdef USE_OPENSSL
193193
SSL *ssl;
194194
X509 *peer;
195-
unsigned long count;
196195
#endif
197196
} Port;
198197

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy