Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use new sendFile

  • Loading branch information...
commit 4f736525285b3d9f01eebb5403ba2cefd115d571 1 parent d09d728
@bmcdorman bmcdorman authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/server_thread.cpp
View
3  src/server_thread.cpp
@@ -126,6 +126,7 @@ void ServerThread::handleArchive(const Packet &headerPacket)
}
quint64 end = msystime();
+ qDebug() << "Header size: " << header.size;
qDebug() << "Took" << (end - start) << "milliseconds to recv";
// Load up the archive
@@ -193,7 +194,7 @@ void ServerThread::handleAction(const Packet &action)
std::istringstream sstream;
sstream.rdbuf()->pubsetbuf(data.data(), data.size());
- if(!m_proto->sendFile("", "col", &sstream)) {
+ if(!m_proto->sendFile("", "col", (unsigned char *)data.data(), data.size())) {
qWarning() << "Sending result failed";
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.