From: Eric Wong Date: 2016-03-06T00:55:24+00:00 Subject: [ruby-core:74175] Re: [Ruby trunk Feature#12077] Consolidate SSLSocket interface with TCPSocket tonci.damjanic@gmail.com wrote: > Is there a reason why `SSLSocket#read` doesn't work the same > as `SSLSocket#sysread` Because IO#read and IO#sysread are different, too. The former is read-in-full behavior (outside of EOF) while sysread matches the low-level C interface and allows for partial reads. Likewise with write vs syswrite regarding write-in-full behavior. > and why there is no `SSLSocket#recv`? Currently, OpenSSL does not provide an interface to recv(2) which handles flag arguments :< I too wish for recv(2) and send(2) interfaces which lets me use MSG_MORE|MSG_DONTWAIT flags. Unsubscribe: