58 while(close(conn->fd)) { |
58 while(close(conn->fd)) { |
59 if(errno != EINTR) { |
59 if(errno != EINTR) { |
60 log_ereport(LOG_VERBOSE, "connection close failed: %s", strerror(errno)); |
60 log_ereport(LOG_VERBOSE, "connection close failed: %s", strerror(errno)); |
61 break; |
61 break; |
62 } |
62 } |
|
63 log_ereport(LOG_VERBOSE, "connection close: EINTR"); |
63 } |
64 } |
64 } |
65 } |
65 |
66 |
66 int connection_ssl_read(Connection *conn, void *buf, int len) { |
67 int connection_ssl_read(Connection *conn, void *buf, int len) { |
67 int ret = SSL_read(conn->ssl, buf, len); |
68 int ret = SSL_read(conn->ssl, buf, len); |
90 while(close(conn->fd)) { |
91 while(close(conn->fd)) { |
91 if(errno != EINTR) { |
92 if(errno != EINTR) { |
92 log_ereport(LOG_VERBOSE, "connection close failed: %s", strerror(errno)); |
93 log_ereport(LOG_VERBOSE, "connection close failed: %s", strerror(errno)); |
93 break; |
94 break; |
94 } |
95 } |
|
96 log_ereport(LOG_VERBOSE, "connection close: EINTR"); |
95 } |
97 } |
96 } |
98 } |
97 |
99 |
98 void connection_destroy(Connection *conn) { |
100 void connection_destroy(Connection *conn) { |
99 conn->close(conn); |
101 conn->close(conn); |