[Libreoffice-commits] online.git: net/Socket.cpp wsd/Admin.cpp
Michael Meeks
michael.meeks at collabora.com
Fri Jun 15 16:38:32 UTC 2018
net/Socket.cpp | 3 +--
wsd/Admin.cpp | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a52152777717aad85b5f954af1b43f1a23c35d25
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Fri Jun 15 17:36:13 2018 +0100
Fix logging a little.
Change-Id: I858ffb40e071eae3907eeff9c2d6291fd805dc02
diff --git a/net/Socket.cpp b/net/Socket.cpp
index dddfe4fc0..2fc2a1425 100644
--- a/net/Socket.cpp
+++ b/net/Socket.cpp
@@ -161,7 +161,6 @@ void SocketPoll::insertNewWebSocketSync(const Poco::URI &uri, const std::shared_
{
int fd = socket(ai->ai_addr->sa_family, SOCK_STREAM | SOCK_NONBLOCK, 0);
int res = connect(fd, ai->ai_addr, ai->ai_addrlen);
- // FIXME: SSL sockets presumably need some setup, checking etc. and ... =)
if (fd < 0 || (res < 0 && errno != EINPROGRESS))
{
LOG_ERR("Failed to connect to " << uri.getHost());
@@ -259,7 +258,7 @@ void StreamSocket::dumpState(std::ostream& os)
if (_inBuffer.size() > 0)
Util::dumpHex(os, "\t\tinBuffer:\n", "\t\t", _inBuffer);
if (_outBuffer.size() > 0)
- Util::dumpHex(os, "\t\toutBuffer:\n", "\t\t", _inBuffer);
+ Util::dumpHex(os, "\t\toutBuffer:\n", "\t\t", _outBuffer);
}
void StreamSocket::send(Poco::Net::HTTPResponse& response)
diff --git a/wsd/Admin.cpp b/wsd/Admin.cpp
index 723bb22f9..f28a741ec 100644
--- a/wsd/Admin.cpp
+++ b/wsd/Admin.cpp
@@ -675,6 +675,7 @@ public:
void Admin::connectToMonitorSync(const std::string &uri)
{
+ LOG_TRC("Add monitor " << uri);
insertNewWebSocketSync(Poco::URI(uri), std::make_shared<MonitorSocketHandler>(this, uri));
}
More information about the Libreoffice-commits
mailing list