Lots of fixes, begin to think about timeouts

This commit is contained in:
Alex Hultman
2018-07-02 23:13:55 +02:00
parent 441d8bc4b4
commit a3dd3ef958
5 changed files with 67 additions and 19 deletions
+2 -2
View File
@@ -133,7 +133,7 @@ struct HttpSocket {
// write that off!
if constexpr (SSL) {
httpData->offset = us_ssl_socket_write((SOCKET_TYPE *) this, chunk.data(), chunk.length());
} else {
httpData->offset = us_socket_write((SOCKET_TYPE *) this, chunk.data(), chunk.length(), 0);
}
@@ -155,7 +155,7 @@ struct HttpSocket {
// write that off!
if constexpr (SSL) {
httpData->offset += us_ssl_socket_write((SOCKET_TYPE *) this, chunk.data(), chunk.length());
} else {
httpData->offset += us_socket_write((SOCKET_TYPE *) this, chunk.data(), chunk.length(), 0);
}