[Libreoffice-commits] online.git: wsd/LOOLWSD.cpp
Pranav Kant
pranavk at collabora.co.uk
Fri Jan 26 14:42:27 UTC 2018
wsd/LOOLWSD.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 9ea81e792109b394713e71a5b72aa7f21a17755d
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Fri Jan 26 20:10:36 2018 +0530
wsd: Update client port number if default is unavailable
And print that on the console so that user knows what port the current
wsd instance is using.
Change-Id: I68fb7d23f46df4ad56ba444735b2888c410f7bd5
diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp
index ca0ca6a5..13ae0298 100644
--- a/wsd/LOOLWSD.cpp
+++ b/wsd/LOOLWSD.cpp
@@ -2587,6 +2587,7 @@ private:
_exit(Application::EXIT_SOFTWARE);
}
+ MasterPortNumber = port;
LOG_INF("Listening to prisoner connections on port " << port);
return socket;
}
@@ -2613,6 +2614,7 @@ private:
ServerSocket::Type::Public, port, WebServerPoll, factory);
}
+ ClientPortNumber = port;
LOG_INF("Listening to client connections on port " << port);
return socket;
}
@@ -2751,7 +2753,7 @@ int LOOLWSD::innerMain()
/// The main-poll does next to nothing:
SocketPoll mainWait("main");
#if ENABLE_DEBUG
- std::cerr << "Ready to accept connections.\n" << std::endl;
+ std::cerr << "Ready to accept connections on port " << ClientPortNumber << ".\n" << std::endl;
#endif
const auto startStamp = std::chrono::steady_clock::now();
More information about the Libreoffice-commits
mailing list