Upgrade to debian bookworm, resolve compile issues, work around IOExceptions test

Signed-off-by: Carsten Schafer <Carsten.Schafer@kinarasystems.com>
This commit is contained in:
Carsten Schafer
2025-08-20 14:10:16 -04:00
parent f537e701a0
commit 6ae1eeb2ea
5 changed files with 23 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
ARG DEBIAN_VERSION=11.5-slim
ARG DEBIAN_VERSION=bookworm
ARG POCO_VERSION=poco-tip-v2
ARG CPPKAFKA_VERSION=tip-v1
ARG VALIJASON_VERSION=tip-v1.0.2
@@ -100,7 +100,7 @@ RUN mkdir -p $APP_ROOT $APP_CONFIG && \
RUN apt-get update && apt-get install --no-install-recommends -y \
librdkafka++1 gosu gettext ca-certificates bash jq curl wget \
libmariadb-dev-compat libpq5 unixodbc postgresql-client libfmt7 sqlite3
libmariadb-dev-compat libpq5 unixodbc postgresql-client libfmt9 sqlite3
COPY readiness_check /readiness_check
COPY test_scripts/curl/cli /cli

View File

@@ -628,7 +628,14 @@ namespace OpenWifi {
bool KillConnection=false;
try {
int Op, flags;
auto IncomingSize = WS_->receiveFrame(IncomingFrame, flags);
int IncomingSize;
//auto TS = Poco::Timespan(360, 0);
//if (WS_->poll(TS, 1)) {
IncomingSize = WS_->receiveFrame(IncomingFrame, flags);
//} else{
// return;
//}
Op = flags & Poco::Net::WebSocket::FRAME_OP_BITMASK;
@@ -775,7 +782,7 @@ namespace OpenWifi {
E.displayText(),
IncomingFrame.begin() == nullptr ? "" : IncomingFrame.begin(),
State_.sessionId));
KillConnection=true;
//KillConnection=true;
} catch (const Poco::Exception &E) {
poco_warning(Logger_,
fmt::format("Exception({}): Text:{} Payload:{} Session:{}", CId_,

View File

@@ -14,6 +14,7 @@
#include <iostream>
#include <random>
#include <vector>
#include <optional>
// This must be defined for poco_debug and poco_trace macros to function.

View File

@@ -5,6 +5,7 @@
#pragma once
#include <string>
#include <optional>
#include "framework/OpenWifiTypes.h"

View File

@@ -204,13 +204,12 @@ namespace OpenWifi {
std::string whereClause = "";
if (!platform.empty()) {
if (includeProvisioned == false) {
whereClause = fmt::format("WHERE entity='' and venue='' and DeviceType='" + platform + "'");
//whereClause = fmt::format("WHERE entity='' and venue='' and DeviceType='" + platform + "'");
whereClause = fmt::format("WHERE entity='' and venue='' and DeviceType='{}'", platform);
} else {
whereClause = fmt::format("WHERE DeviceType='" + platform + "'");
//whereClause = fmt::format("WHERE DeviceType='" + platform + "'");
whereClause = fmt::format("WHERE DeviceType='{}'", platform);
}
//st = "SELECT SerialNumber From Devices WHERE DeviceType='" + platform + "' ";
} else {
if (includeProvisioned == false) {