mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-21 19:22:18 -05:00
9 lines
583 B
Ruby
9 lines
583 B
Ruby
# Ignore OpenSSL EOF errors that are very common with OpenSSL 3 because the Internet is terrible.
|
|
# This solution is a horrible hack from https://stackoverflow.com/questions/76183622/since-a-ruby-container-upgrade-we-expirience-a-lot-of-opensslsslsslerror
|
|
# but it seems the quickest and most global solution without rewriting a bunch of lower-level code.
|
|
# It'll do for now.
|
|
if defined?(OpenSSL::SSL::OP_IGNORE_UNEXPECTED_EOF)
|
|
OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:options] =
|
|
OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:options] + OpenSSL::SSL::OP_IGNORE_UNEXPECTED_EOF
|
|
end
|