Remove debug output

I was initially under the impression that no data should be sent past EOF but from testing it is clear that this assumption is incorrect. It’s unimportant though as we do handle the case (though we didn’t initially, and that’s why I put in the fprintf, to verify the situation I guarded for actually was happening).
This commit is contained in:
Allan Odgaard
2012-08-15 15:58:38 +02:00
parent 52b01e0f6e
commit 9e1d10b5f1

View File

@@ -111,6 +111,7 @@ namespace io
iterate(it, tmp)
{
// required check as we may receive a post-EOF “bytes available” with it->length == 0
if(clients_consumed_eof.find(it->client_key) == clients_consumed_eof.end())
{
std::map<size_t, reader_t*>::iterator client = client_to_callback.find(it->client_key);
@@ -119,10 +120,6 @@ namespace io
if(it->length == 0)
clients_consumed_eof.insert(it->client_key);
}
else
{
fprintf(stderr, "*** got %zu bytes for client which already received EOF\n", it->length);
}
delete it->bytes;
}
}