Merge branch 'jerry-sandbox' of https://github.com/synergy/synergy into jerry-sandbox

This commit is contained in:
Jerry (Xinyu Hou) 2015-05-26 17:13:09 -07:00
commit 3788084e43
1 changed files with 3 additions and 12 deletions

View File

@ -62,17 +62,8 @@ ClientProxy1_6::setClipboard(ClipboardID id, const IClipboard* clipboard)
size_t size = data.size(); size_t size = data.size();
LOG((CLOG_DEBUG "sending clipboard %d to \"%s\"", id, getName().c_str())); LOG((CLOG_DEBUG "sending clipboard %d to \"%s\"", id, getName().c_str()));
// HACK: if using SSL, don't send large clipboards (#4601) StreamChunker::sendClipboard(data, size, id, 0, m_events, this);
bool send = true; LOG((CLOG_DEBUG "sent clipboard size=%d", size));
if (getServer()->isSecure() && (size > kSslClipboardMaxSize)) {
send = false;
LOG((CLOG_WARN "large clipboards not supported with ssl, size=%d", size));
}
if (send) {
StreamChunker::sendClipboard(data, size, id, 0, m_events, this);
LOG((CLOG_DEBUG "sent clipboard size=%d", size));
}
} }
} }