Bug #8126

OpenSSL::SSL::SSLSocket does not define #recv and #send messages

Added by Hal Brodigan about 1 year ago. Updated 9 months ago.

[ruby-core:53553]
Status:Open
Priority:Normal
Assignee:Martin Bosslet
Category:lib
Target version:-
ruby -v:ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux] Backport:

Description

OpenSSL::SSL::SSLSocket does not define #recv/#send methods and is not compatible with TCPSocket.

History

#1 Updated by Hal Brodigan about 1 year ago

Here is a list of methods which are defined by TCPSocket, but not SSLSocket:

  • recvfrom
  • shutdown
  • getsockname
  • getpeername
  • local_address
  • remote_address
  • recv
  • recv_nonblock
  • donotreverse_lookup
  • sendmsg
  • sendmsg_nonblock
  • recvmsg
  • recvmsg_nonblock
  • connect_address

#2 Updated by Zachary Scott about 1 year ago

Do you have a use-case for these methods? Or do you just want them added for consistency?

#3 Updated by Martin Bosslet 10 months ago

I agree that it would be better design if SSLSocket responded to the same interface that TCPSocket responds to. However, that's quite a bunch of methods, it would take quite a while to implement them all... Are there any methods in particular that you are missing the most from that list?

#4 Updated by Rafał Lisowski 9 months ago

I don't know how @postmodern but I miss the getpeername the most.

Also available in: Atom PDF