Repository: mesos Updated Branches: refs/heads/master e121ef6fe -> 8990ebbf3
Print corresponding address when socket shutdown. Print corresponding address when socket shutdown. Default just print socket 'fd',it's not convenient to find corresponding address. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/8990ebbf Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/8990ebbf Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/8990ebbf Branch: refs/heads/master Commit: 8990ebbf300447492cde430e977c7c266b8bd8ec Parents: e121ef6 Author: Andy Pang <pangbingqi...@huawei.com> Authored: Wed Apr 26 15:22:10 2017 -0700 Committer: Vinod Kone <vinodk...@gmail.com> Committed: Wed Apr 26 15:23:15 2017 -0700 ---------------------------------------------------------------------- 3rdparty/libprocess/src/process.cpp | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/8990ebbf/3rdparty/libprocess/src/process.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/process.cpp b/3rdparty/libprocess/src/process.cpp index 92efa91..0cee9a6 100644 --- a/3rdparty/libprocess/src/process.cpp +++ b/3rdparty/libprocess/src/process.cpp @@ -2359,6 +2359,8 @@ Encoder* SocketManager::next(int_fd s) Try<Nothing> shutdown = socket.shutdown(); if (shutdown.isError()) { LOG(ERROR) << "Failed to shutdown socket with fd " << socket.get() + << ", address " << (socket.address().isSome() ? + << stringify(socket.address().get()) : "N/A") << ": " << shutdown.error(); } } @@ -2442,6 +2444,8 @@ void SocketManager::close(int_fd s) Try<Nothing> shutdown = socket.shutdown(); if (shutdown.isError()) { LOG(ERROR) << "Failed to shutdown socket with fd " << socket.get() + << ", address " << (socket.address().isSome() ? + << stringify(socket.address().get()) : "N/A") << ": " << shutdown.error(); } }