ruby/ruby-3.1.0-SSL_read-EOF-handling.patch
Vít Ondruch 84c1bf6900 Upgrade to Ruby 3.1.0 (a84dc9d80d).
rbs downgraded to version 1.6.2 and debug gem not included due to build
issues.

Added ruby-bundled-gems subpackage to ship all gems bundled in Ruby
without providing independent subpackage for each.
2021-12-02 18:04:49 +01:00

14 lines
418 B
Diff

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
GetSSL(self, ssl);
if (!ssl_started(ssl))
rb_raise(eSSLError, "SSL session is not started yet");
+
+#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
+ SSL_set_options(ssl, SSL_OP_IGNORE_UNEXPECTED_EOF);
+#endif
ilen = NUM2INT(len);
if (NIL_P(str))