You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2020/12/14 18:48:10 UTC

[mesos] branch master updated (206da61 -> 0a6cf76)

This is an automated email from the ASF dual-hosted git repository.

vinodkone pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git.


    from 206da61  Updated `building.md` for the 1.11.0 release.
     new de8d9e8  Add recipient address in Host header field
     new 0a6cf76  Update ProcessTest.Remote

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 3rdparty/libprocess/src/encoder.hpp             |  2 +-
 3rdparty/libprocess/src/tests/process_tests.cpp | 13 ++++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)


[mesos] 02/02: Update ProcessTest.Remote

Posted by vi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vinodkone pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 0a6cf7639bf71e6333ef541f001f5885ac00b2d5
Author: Abdul Qadeer <qu...@gmail.com>
AuthorDate: Thu Dec 3 16:43:06 2020 -0800

    Update ProcessTest.Remote
---
 3rdparty/libprocess/src/tests/process_tests.cpp | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/3rdparty/libprocess/src/tests/process_tests.cpp b/3rdparty/libprocess/src/tests/process_tests.cpp
index 42295a6..eabd70e 100644
--- a/3rdparty/libprocess/src/tests/process_tests.cpp
+++ b/3rdparty/libprocess/src/tests/process_tests.cpp
@@ -1445,9 +1445,11 @@ TEST_F(ProcessTest, Remote)
   RemoteProcess process;
   spawn(process);
 
-  Future<Nothing> handler;
+  Future<UPID> pid;
+  Future<string> body;
   EXPECT_CALL(process, handler(_, _))
-    .WillOnce(FutureSatisfy(&handler));
+    .WillOnce(DoAll(FutureArg<0>(&pid),
+                    FutureArg<1>(&body)));
 
   Try<Socket> create = Socket::create();
   ASSERT_SOME(create);
@@ -1463,12 +1465,17 @@ TEST_F(ProcessTest, Remote)
   message.name = "handler";
   message.from = UPID("sender", sender.get());
   message.to = process.self();
+  message.body = "hello world";
 
   const string data = MessageEncoder::encode(message);
 
   AWAIT_READY(socket.send(data));
 
-  AWAIT_READY(handler);
+  AWAIT_READY(body);
+  ASSERT_EQ("hello world", body.get());
+
+  AWAIT_READY(pid);
+  ASSERT_EQ(message.from, pid.get());
 
   terminate(process);
   wait(process);


[mesos] 01/02: Add recipient address in Host header field

Posted by vi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vinodkone pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit de8d9e8dc419445b2f9b22868d4ce03a11fc3505
Author: Abdul Qadeer <qu...@gmail.com>
AuthorDate: Mon Nov 23 14:30:55 2020 -0800

    Add recipient address in Host header field
---
 3rdparty/libprocess/src/encoder.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/3rdparty/libprocess/src/encoder.hpp b/3rdparty/libprocess/src/encoder.hpp
index 629b94f..23c8097 100644
--- a/3rdparty/libprocess/src/encoder.hpp
+++ b/3rdparty/libprocess/src/encoder.hpp
@@ -122,7 +122,7 @@ public:
         << "User-Agent: libprocess/" << message.from << "\r\n"
         << "Libprocess-From: " << message.from << "\r\n"
         << "Connection: Keep-Alive\r\n"
-        << "Host: \r\n";
+        << "Host: " << message.to.address << "\r\n";
 
     if (message.body.size() > 0) {
       out << "Transfer-Encoding: chunked\r\n\r\n"