You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Marco Massenzio (JIRA)" <ji...@apache.org> on 2015/08/03 22:31:08 UTC
[jira] [Updated] (MESOS-2964) libprocess io does not support peek()
[ https://issues.apache.org/jira/browse/MESOS-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marco Massenzio updated MESOS-2964:
-----------------------------------
Sprint: Mesosphere Sprint 15, Mesosphere Sprint 16 (was: Mesosphere Sprint 15)
> libprocess io does not support peek()
> -------------------------------------
>
> Key: MESOS-2964
> URL: https://issues.apache.org/jira/browse/MESOS-2964
> Project: Mesos
> Issue Type: Improvement
> Components: libprocess
> Reporter: Artem Harutyunyan
> Assignee: Artem Harutyunyan
> Priority: Minor
> Labels: beginner, mesosphere, newbie
>
> Finally, I so wish we could just do:
> {code}
> io::peek(request->socket, 6)
> .then([request](const string& data) {
> // Comment about the rules ...
> if (data.length() < 2) { // Rule 1
>
> } else if (...) { // Rule 2.
>
> } else if (...) { // Rule 3.
>
> }
>
> if (ssl) {
> accept_SSL_callback(request);
> } else {
> ...;
> }
> });
> {code}
> from:
> https://reviews.apache.org/r/31207/
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)