diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ad11d1..08cb616 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,3 +177,12 @@ target_link_libraries(tfileserver PUBLIC tessesframework) install(TARGETS tfileserver DESTINATION bin) endif() + +include(InstallRequiredSystemLibraries) +set(CPACK_PACKAGE_CONTACT "Mike Nolan ") +set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.md") +set(CPACK_PACKAGE_VERSION_MAJOR "${TessesFramework_VERSION_MAJOR}") +set(CPACK_PACKAGE_VERSION_MINOR "${TessesFramework_VERSION_MINOR}") +set(CPACK_DEBIAN_PACKAGE_DEPENDS "libmbedtls-dev (>= 2.28.8)") + +include(CPack) \ No newline at end of file diff --git a/src/Http/HttpServer.cpp b/src/Http/HttpServer.cpp index 848e318..5f38c31 100644 --- a/src/Http/HttpServer.cpp +++ b/src/Http/HttpServer.cpp @@ -834,8 +834,6 @@ namespace Tesses::Framework::Http void HttpServer::Process(Stream& strm, IHttpServer& server, std::string ip, uint16_t port, bool encrypted) { - while(true) - { BufferedStream bStrm(strm); StreamReader reader(bStrm); ServerContext ctx(&bStrm); @@ -919,19 +917,7 @@ namespace Tesses::Framework::Http if(ctx.version != "HTTP/1.1" ) return; - std::string connection; - if(ctx.requestHeaders.TryGetFirst("Connection", connection)) - { - if(connection != "keep-alive") return; - } - if(ctx.responseHeaders.TryGetFirst("Connection", connection)) - { - if(connection != "keep-alive") return; - } - - if(bStrm.EndOfStream()) return; - } } WebSocketConnection::~WebSocketConnection()