HTTP_ENDED_STREAM_OUT and clean-ups

This commit is contained in:
Alex Hultman
2018-09-21 00:02:53 +02:00
parent 178dae70c2
commit ede5fb304a
3 changed files with 27 additions and 65 deletions
+5
View File
@@ -142,6 +142,11 @@ public:
return 0;
}
/* Check if this socket has buffered data */
bool hasBuffer() {
return ((AsyncSocketData<SSL> *) getExt())->buffer.length() > 0;
}
/* Drain any socket-buffer while also optionally sending a chunk */
int mergeDrain(std::string_view optionalChunk) {