On Sun, Jan 12, 2014 at 10:35 PM, Vetoshkin Nikita <
[email protected]> wrote:

> but to me it seems that
> protocol is protobuf messages inside HTTP POST body. I just couldn't find
> yet where to does executor driver send them (UNIX socket? TCP?). Wouldn't
> simply documenting it be enough for a start?
>

Look for 'send()' calls inside exec.cpp. It is a libprocess method that
sends messages to an end point. Similarly 'install<>()' is a libprocess
method to receive messages. libprocess does use HTTP for sending/receiving
protobuf messages but it expects them to be in a certain format.
Specifically it expects 'from' and 'to' fields in addition to the protobuf
message. 'from/to' correspond to libprocess endpoint (internally called
PID) : <id>@ip:port.

Reply via email to