Remove last debug prints

This commit is contained in:
Alex Hultman
2019-01-26 19:02:29 +01:00
parent 1eaf69c566
commit 92fb74b7e9
+1 -7
View File
@@ -100,9 +100,8 @@ protected:
* Returns pair of bytes written (anywhere) and wheter or not this call resulted in the polling for
* writable (or we are in a state that implies polling for writable). */
std::pair<int, bool> write(const char *src, int length, bool optionally = false, int nextLength = 0) {
/* Fake success if closed, simpel fix to allow uncork of closed socket to succeed */
/* Fake success if closed, simple fix to allow uncork of closed socket to succeed */
if (us_new_socket_is_closed(SSL, (us_new_socket_t *) this)) {
std::cout << "Faking successful send due to closed socket!" << std::endl;
return {length, false};
}
@@ -127,9 +126,6 @@ protected:
/* This path is horrible and points towards erroneous usage */
asyncSocketData->buffer.append(src, length);
// todo: remove this when we are no longer morons
std::cout << "Warning: fudge this is horrible!!" << std::endl;
return {length, true};
}
}
@@ -172,8 +168,6 @@ protected:
return {written, true};
}
std::cout << "Buffering at bottom of write (okay)!" << std::endl;
/* Fall back to worst possible case (should be very rare for HTTP) */
/* At least we can reserve room for next chunk if we know it up front */
if (nextLength) {