Skip to content

Commit

Permalink
ssl: allow underlying socket to not implement #sync
Browse files Browse the repository at this point in the history
The value is used to determine whether SSLSocket should skip buffering
in OpenSSL::Buffering or not. Defaulting to true (no buffering) should
be a safe option.
  • Loading branch information
rhenium committed Sep 5, 2024
1 parent c19ff32 commit a5ed9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openssl/buffering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def initialize(*)
super
@eof = false
@rbuffer = Buffer.new
@sync = @io.sync
@sync = @io.respond_to?(:sync) ? @io.sync : true
end

#
Expand Down

0 comments on commit a5ed9e6

Please sign in to comment.