Obvious bug in my new connio function - advance the read pointer when we consume some data...

This commit is contained in:
alexhudson
2008-03-08 21:14:15 +00:00
parent 1733d8f8d5
commit 37fbbedcd1
+1
View File
@@ -1098,6 +1098,7 @@ ConnReadToAllocatedBuffer(Connection *c, char **buffer, unsigned long *bufferSiz
// didn't find the end of the line
data_consumed += ConnAppendToAllocatedBuffer(c->receive.read,
(c->receive.write - c->receive.read), buffer, data_consumed, bufferSize);
c->receive.read += data_consumed;
}
}