Lines Matching defs:read
538 // Seems odd to read when when we want to send, but SSL_read() triggers a
733 Debug(this, "Trying to read cleartext output");
754 int read;
756 read = SSL_read(ssl_.get(), out, sizeof(out));
757 Debug(this, "Read %d bytes of cleartext output", read);
759 if (read <= 0)
763 while (read > 0) {
764 int avail = read;
776 Debug(this, "Returning from read loop, ssl_ == nullptr");
780 read -= avail;
786 // shutdown cleanly (SSL_ERROR_ZERO_RETURN) even when read == 0.
791 if (read <= 0) {
794 int err = SSL_get_error(ssl_.get(), read);
1102 // Error should be emitted only after all data was read
1119 // Commit the amount of data actually read into the peeked/allocated buffer