summaryrefslogtreecommitdiff
path: root/lib/CopyJob.cc
diff options
context:
space:
mode:
authorpixel <pixel>2007-03-26 17:55:24 +0000
committerpixel <pixel>2007-03-26 17:55:24 +0000
commit8e7d2bd992d50f614186bf96e027ba832db754f6 (patch)
tree721b0b46b1ca3011ae15af6d81d2e593a553e66d /lib/CopyJob.cc
parent1180579bd2ca853a937e6902ad30e4ab9776df43 (diff)
Almost-working HttpClient.
Diffstat (limited to 'lib/CopyJob.cc')
-rw-r--r--lib/CopyJob.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CopyJob.cc b/lib/CopyJob.cc
index 0a086b9..7e7c4de 100644
--- a/lib/CopyJob.cc
+++ b/lib/CopyJob.cc
@@ -43,7 +43,8 @@ int CopyJob::Do() throw (GeneralException) {
tr = siz >= 0 ? siz - cursiz : COPY_BUFSIZ;
try {
r = s->read(buffer, MIN(COPY_BUFSIZ, tr));
-// cerr << "CopyJob: read " << r << " bytes." << endl;
+// std::cerr << "CopyJob: read " << r << " bytes." << std::endl;
+// std::cerr << buffer;
}
catch (IOAgain e) {
WaitFor(s, W4_READING);
@@ -62,10 +63,10 @@ int CopyJob::Do() throw (GeneralException) {
WaitFor(d, W4_WRITING);
Suspend(TASK_ON_HOLD);
}
-// cerr << "CopyJob: wrote " << w << " bytes." << endl;
+// std::cerr << "CopyJob: wrote " << w << " bytes." << std::endl;
tw += w;
if (r != tw) {
-// cerr << "CopyJob: We did expect to write a total of " << r << " bytes and we achieved " << tw << " bytes so far.\n";
+// std::cerr << "CopyJob: We did expect to write a total of " << r << " bytes and we achieved " << tw << " bytes so far.\n";
WaitFor(d, W4_WRITING);
Suspend(TASK_ON_HOLD);
}