2021-11-05 19:55:56 +00:00
|
|
|
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
|
|
|
|
index 3b425ca..40e748c 100644
|
|
|
|
--- a/ext/openssl/ossl_ssl.c
|
|
|
|
+++ b/ext/openssl/ossl_ssl.c
|
2021-11-25 16:46:12 +00:00
|
|
|
@@ -1870,6 +1870,11 @@ ossl_ssl_read_internal(int argc, VALUE *argv, VALUE self, int nonblock)
|
2021-11-05 19:55:56 +00:00
|
|
|
return str;
|
|
|
|
|
|
|
|
GetSSL(self, ssl);
|
|
|
|
+
|
|
|
|
+#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
|
|
|
|
+ SSL_set_options(ssl, SSL_OP_IGNORE_UNEXPECTED_EOF);
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
io = rb_attr_get(self, id_i_io);
|
|
|
|
GetOpenFile(io, fptr);
|
|
|
|
if (ssl_started(ssl)) {
|