https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112016-02-16T11:34:28ZRuby Issue Tracking SystemRuby master - Feature #12077: Consolidate SSLSocket interface with TCPSockethttps://redmine.ruby-lang.org/issues/12077?journal_id=570162016-02-16T11:34:28Ztonci (Tonči Damjanić)tonci.damjanic@gmail.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/57016/diff?detail_id=40258">diff</a>)</li></ul> Ruby master - Feature #12077: Consolidate SSLSocket interface with TCPSockethttps://redmine.ruby-lang.org/issues/12077?journal_id=570172016-02-16T11:35:14Ztonci (Tonči Damjanić)tonci.damjanic@gmail.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/57017/diff?detail_id=40259">diff</a>)</li></ul> Ruby master - Feature #12077: Consolidate SSLSocket interface with TCPSockethttps://redmine.ruby-lang.org/issues/12077?journal_id=571162016-02-24T16:08:29Ztonci (Tonči Damjanić)tonci.damjanic@gmail.com
<ul><li><strong>Assignee</strong> set to <i>core</i></li></ul> Ruby master - Feature #12077: Consolidate SSLSocket interface with TCPSockethttps://redmine.ruby-lang.org/issues/12077?journal_id=573172016-03-06T01:02:05Znormalperson (Eric Wong)normalperson@yhbt.net
<ul></ul><p><a href="mailto:tonci.damjanic@gmail.com" class="email">tonci.damjanic@gmail.com</a> wrote:</p>
<blockquote>
<p>Is there a reason why <code>SSLSocket#read</code> doesn't work the same<br>
as <code>SSLSocket#sysread</code></p>
</blockquote>
<p>Because IO#read and IO#sysread are different, too. The former<br>
is read-in-full behavior (outside of EOF) while sysread matches<br>
the low-level C interface and allows for partial reads.</p>
<p>Likewise with write vs syswrite regarding write-in-full<br>
behavior.</p>
<blockquote>
<p>and why there is no <code>SSLSocket#recv</code>?</p>
</blockquote>
<p>Currently, OpenSSL does not provide an interface to recv(2)<br>
which handles flag arguments :<</p>
<p>I too wish for recv(2) and send(2) interfaces which lets me<br>
use MSG_MORE|MSG_DONTWAIT flags.</p> Ruby master - Feature #12077: Consolidate SSLSocket interface with TCPSockethttps://redmine.ruby-lang.org/issues/12077?journal_id=586682016-05-17T06:37:46Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Assignee</strong> deleted (<del><i>core</i></del>)</li></ul> Ruby master - Feature #12077: Consolidate SSLSocket interface with TCPSockethttps://redmine.ruby-lang.org/issues/12077?journal_id=645132017-04-27T13:47:46Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Is duplicate of</strong> <i><a class="issue tracker-2 status-2 priority-4 priority-default" href="/issues/8126">Feature #8126</a>: OpenSSL::SSL::SSLSocket does not define #recv and #send messages</i> added</li></ul>