Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround SSLSocket always clearing the buffer
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.
- Loading branch information