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 2017/04/26 22:27:05 UTC

mesos git commit: Print failure reason when socket accept failed.

Repository: mesos
Updated Branches:
  refs/heads/master 8990ebbf3 -> c2b91a92e


Print failure reason when socket accept failed.

Review: https://reviews.apache.org/r/58557/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c2b91a92
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c2b91a92
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c2b91a92

Branch: refs/heads/master
Commit: c2b91a92e1ff5013fb4382af922cda520ae9d974
Parents: 8990ebb
Author: Andy Pang <pa...@huawei.com>
Authored: Wed Apr 26 15:26:47 2017 -0700
Committer: Vinod Kone <vi...@gmail.com>
Committed: Wed Apr 26 15:26:47 2017 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/src/process.cpp | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c2b91a92/3rdparty/libprocess/src/process.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/process.cpp b/3rdparty/libprocess/src/process.cpp
index 0cee9a6..6d4c502 100644
--- a/3rdparty/libprocess/src/process.cpp
+++ b/3rdparty/libprocess/src/process.cpp
@@ -947,6 +947,9 @@ void on_accept(const Future<Socket>& socket)
           size,
           socket.get(),
           decoder));
+  } else {
+     LOG(ERROR) << "Failed to accept socket: "
+                << (socket.isFailed() ? socket.failure() : "future discarded");
   }
 
   // NOTE: `__s__` may be cleaned up during `process::finalize`.