You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: #190
```ruby
buff = "blah".b
p io.read_nonblock(10, buffer, exception: false) # :wait_readable
p buff
```
The above code when using a regular Ruby IO socket leaves the
buffer intact, because it only replaces the content if it actually
read something.
However when using a `SSLSocket`, the buffer is always cleared
regardless of whether something was read or not.
This difference could cause the offset to be corrupted by pointing
forward.
0 commit comments