mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artem Harutyunyan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MESOS-2964) libprocess io does not support pick()
Date Tue, 30 Jun 2015 20:56:04 GMT
Artem Harutyunyan created MESOS-2964:
----------------------------------------

             Summary: libprocess io does not support pick()
                 Key: MESOS-2964
                 URL: https://issues.apache.org/jira/browse/MESOS-2964
             Project: Mesos
          Issue Type: Improvement
          Components: libprocess
            Reporter: Artem Harutyunyan
            Priority: Minor


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)

Mime
View raw message