Project

General

Profile

Bug #8126

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

Added by postmodern (Hal Brodigan) over 4 years ago. Updated 3 months ago.

Status:
Assigned
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
Backport:
[ruby-core:53553]

Description

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


Related issues

Has duplicate Ruby trunk - Feature #12077: Consolidate SSLSocket interface with TCPSocketOpen

History

#1 [ruby-core:53657] Updated by postmodern (Hal Brodigan) over 4 years 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
  • do_not_reverse_lookup
  • sendmsg
  • sendmsg_nonblock
  • recvmsg
  • recvmsg_nonblock
  • connect_address

#2 [ruby-core:53676] Updated by zzak (Zachary Scott) over 4 years ago

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

#3 [ruby-core:55810] Updated by MartinBosslet (Martin Bosslet) over 4 years 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 [ruby-core:56373] Updated by lisukorin (RafaƂ Lisowski) over 4 years ago

I don't know how postmodern (Hal Brodigan) but I miss the getpeername the most.

#5 Updated by zzak (Zachary Scott) over 2 years ago

  • Assignee changed from MartinBosslet (Martin Bosslet) to openssl

#6 Updated by naruse (Yui NARUSE) 8 months ago

  • Has duplicate Feature #12077: Consolidate SSLSocket interface with TCPSocket added

#7 [ruby-core:82863] Updated by hsbt (Hiroshi SHIBATA) 3 months ago

  • Assignee changed from openssl to rhenium (Kazuki Yamaguchi)
  • Status changed from Open to Assigned

Also available in: Atom PDF