[#73707] [Ruby trunk Misc#12004] Code of Conduct — hanmac@...
Issue #12004 has been updated by Hans Mackowiak.
3 messages
2016/02/05
[#73730] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/07
[#73746] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/09
[#73919] [Ruby trunk Feature#11262] Make more objects behave like "Functions" — Ruby-Lang@...
Issue #11262 has been updated by J旦rg W Mittag.
3 messages
2016/02/22
[#74019] [Ruby trunk Bug#12103][Rejected] ruby process hangs while executing regular expression. — duerst@...
Issue #12103 has been updated by Martin D端rst.
3 messages
2016/02/27
[ruby-core:73841] [Ruby trunk Feature#12077] Consolidate SSLSocket interface with TCPSocket
From:
tonci.damjanic@...
Date:
2016-02-16 11:34:28 UTC
List:
ruby-core #73841
Issue #12077 has been updated by Tonči Damjanić.
Description updated
----------------------------------------
Feature #12077: Consolidate SSLSocket interface with TCPSocket
https://bugs.ruby-lang.org/issues/12077#change-57016
* Author: Tonči Damjanić
* Status: Open
* Priority: Normal
* Assignee:
----------------------------------------
Hello,
Is there a reason why `SSLSocket#read` doesn't work the same as `SSLSocket#sysread` and why there is no `SSLSocket#recv`?
Right now it is impossible to have code agnostic in regards to the socket type.
One solution is to monkey-patch `OpenSSL::SSL::SSLSocket` (see lower) to share the same interface as `TCPSocket`, but given the generic names of monkey-patched functions, I'm not sure if they could result with some leaks or strange behavior.
~~~
class OpenSSL::SSL::SSLSocket
def read(*args)
sysread(*args)
end
def write(*args)
syswrite(*args)
end
def close
sysclose
end
end
~~~
Thoughts?
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>