Project

General

Profile

Actions

Feature #8126

open

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

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

Added by postmodern (Hal Brodigan) over 12 years ago. Updated about 6 years ago.

Status:
Assigned
Target version:
-
[ruby-core:53553]

Description

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


Related issues 1 (1 open0 closed)

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

Updated by postmodern (Hal Brodigan) over 12 years ago Actions #1 [ruby-core:53657]

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

Updated by zzak (zzak _) over 12 years ago Actions #2 [ruby-core:53676]

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

Updated by MartinBosslet (Martin Bosslet) over 12 years ago Actions #3 [ruby-core:55810]

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?

Updated by lisukorin (Rafał Lisowski) about 12 years ago Actions #4 [ruby-core:56373]

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

Updated by zzak (zzak _) about 10 years ago Actions #5

  • Assignee changed from MartinBosslet (Martin Bosslet) to 7150

Updated by naruse (Yui NARUSE) over 8 years ago Actions #6

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

Updated by hsbt (Hiroshi SHIBATA) about 8 years ago Actions #7 [ruby-core:82863]

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

Updated by jeremyevans0 (Jeremy Evans) about 6 years ago Actions #8

  • Tracker changed from Bug to Feature
  • ruby -v deleted (ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux])
Actions

Also available in: PDF Atom