@@ -1569,12 +1569,9 @@ PQsslAttribute(PGconn *conn, const char *attribute_name)
1569
1569
}
1570
1570
1571
1571
/*
1572
- * Private substitute BIO: this does the sending and receiving using send() and
1573
- * recv() instead. This is so that we can enable and disable interrupts
1574
- * just while calling recv(). We cannot have interrupts occurring while
1575
- * the bulk of openssl runs, because it uses malloc() and possibly other
1576
- * non-reentrant libc facilities. We also need to call send() and recv()
1577
- * directly so it gets passed through the socket/signals layer on Win32.
1572
+ * Private substitute BIO: this does the sending and receiving using
1573
+ * pqsecure_raw_write() and pqsecure_raw_read() instead, to allow those
1574
+ * functions to disable SIGPIPE and give better error messages on I/O errors.
1578
1575
*
1579
1576
* These functions are closely modelled on the standard socket BIO in OpenSSL;
1580
1577
* see sock_read() and sock_write() in OpenSSL's crypto/bio/bss_sock.c.