diff --git a/src/conn_http_dynamic.cpp b/src/conn_http_dynamic.cpp index c7488dc4..7e951682 100644 --- a/src/conn_http_dynamic.cpp +++ b/src/conn_http_dynamic.cpp @@ -206,6 +206,7 @@ namespace Connector_HTTP{ FlashBuf.append(tag.data, tag.len); } } + if (!ss.connected()){break;} } } conn.close(); diff --git a/src/conn_http_progressive.cpp b/src/conn_http_progressive.cpp index 3f3051bc..b99cfd79 100644 --- a/src/conn_http_progressive.cpp +++ b/src/conn_http_progressive.cpp @@ -118,6 +118,7 @@ namespace Connector_HTTP{ conn.Send(std::string(tag.data, tag.len));//write the tag contents } } + if (!ss.connected()){break;} } } conn.close();