Skip to content

Commit e36b322

Browse files
Automatic ETP session resume when disconnection occurs outside of a transaction
1 parent 66ac4b1 commit e36b322

18 files changed

Lines changed: 380 additions & 139 deletions

.github/workflows/github-actions.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ jobs:
5252
cmake --install .
5353
- name: FESAPI install
5454
run: |
55-
(New-Object System.Net.WebClient).DownloadFile("https://github.com/F2I-Consulting/fesapi/releases/download/v2.12.1.0/fesapi2_12_1_0-cpp-vs2019-x64.zip", "${{ runner.temp }}\fesapi.zip")
55+
(New-Object System.Net.WebClient).DownloadFile("https://github.com/F2I-Consulting/fesapi/releases/download/v2.13.0.0/fesapi2_13_0_0-cpp-vs2019-x64.zip", "${{ runner.temp }}\fesapi.zip")
5656
7z x ${{ runner.temp }}\fesapi.zip -o${{ runner.temp }}
5757
- name: CMake build and install
5858
run: |
5959
cd ${{ github.workspace }}/..
6060
mkdir build
6161
cd build
62-
cmake -G"Visual Studio 16 2019" -A x64 -T host=x64 -Wno-dev -Wno-deprecated -DBoost_INCLUDE_DIR=${{ runner.temp }}\boost-install -DAVRO_ROOT=${{ runner.temp }}/avro-cpp-install -DAVRO_USE_STATIC_LIBS=TRUE -DWITH_FESAPI=TRUE -DFESAPI_ROOT=${{ runner.temp }}/fesapi2_12_1_0-cpp-vs2019-x64 -DWITH_ETP_SSL=FALSE ${{ github.workspace }}
62+
cmake -G"Visual Studio 16 2019" -A x64 -T host=x64 -Wno-dev -Wno-deprecated -DBoost_INCLUDE_DIR=${{ runner.temp }}\boost-install -DAVRO_ROOT=${{ runner.temp }}/avro-cpp-install -DAVRO_USE_STATIC_LIBS=TRUE -DWITH_FESAPI=TRUE -DFESAPI_ROOT=${{ runner.temp }}/fesapi2_13_0_0-cpp-vs2019-x64 -DWITH_ETP_SSL=FALSE ${{ github.workspace }}
6363
cmake --build . --config Release -j2
6464
ubuntu-22:
6565
runs-on: ubuntu-22.04
@@ -148,7 +148,7 @@ jobs:
148148
sudo apt install -y ${{ matrix.xcc_pkg }} libhdf5-dev libminizip-dev libboost-all-dev
149149
- name: FESAPI install
150150
run: |
151-
git clone --branch v2.12.1.0 --single-branch https://github.com/F2I-Consulting/fesapi.git ${{ runner.temp }}/fesapi-src
151+
git clone --branch v2.13.0.0 --single-branch https://github.com/F2I-Consulting/fesapi.git ${{ runner.temp }}/fesapi-src
152152
cd ${{ runner.temp }}
153153
mkdir fesapi-build
154154
cd fesapi-build
@@ -172,7 +172,7 @@ jobs:
172172
cd ${{ github.workspace }}/..
173173
mkdir build
174174
cd build
175-
cmake -DAVRO_ROOT=${{ runner.temp }}/avro-cpp-install -DAVRO_USE_STATIC_LIBS=TRUE -DWITH_FESAPI=TRUE -DFESAPI_ROOT=${{ runner.temp }}/fesapi-install -DFESAPI_JAR=${{ runner.temp }}/fesapi-install/lib/fesapiJava-2.12.1.0.jar -DWITH_JAVA_WRAPPING=TRUE ${{ github.workspace }} -DCMAKE_C_COMPILER=${{ matrix.cc }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx }}
175+
cmake -DAVRO_ROOT=${{ runner.temp }}/avro-cpp-install -DAVRO_USE_STATIC_LIBS=TRUE -DWITH_FESAPI=TRUE -DFESAPI_ROOT=${{ runner.temp }}/fesapi-install -DFESAPI_JAR=${{ runner.temp }}/fesapi-install/lib/fesapiJava-2.13.0.0.jar -DWITH_JAVA_WRAPPING=TRUE ${{ github.workspace }} -DCMAKE_C_COMPILER=${{ matrix.cc }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx }}
176176
cmake --build . --config Release -j2
177177
build_wheels_windows:
178178
name: Build wheels on windows-latest
@@ -191,12 +191,12 @@ jobs:
191191
CIBW_BEFORE_ALL: >
192192
%VCPKG_INSTALLATION_ROOT%\vcpkg install boost-uuid minizip hdf5[zlib] &&
193193
cd ${{ runner.temp }} &&
194-
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://github.com/F2I-Consulting/fesapi/archive/refs/tags/v2.12.1.0.tar.gz', '${{ runner.temp }}\fesapi-2.12.1.0.tar.gz')" &&
195-
7z x ${{ runner.temp }}\fesapi-2.12.1.0.tar.gz -o${{ runner.temp }} &&
196-
7z x ${{ runner.temp }}\fesapi-2.12.1.0.tar -o${{ runner.temp }} &&
194+
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://github.com/F2I-Consulting/fesapi/archive/refs/tags/v2.13.0.0.tar.gz', '${{ runner.temp }}\fesapi-2.13.0.0.tar.gz')" &&
195+
7z x ${{ runner.temp }}\fesapi-2.13.0.0.tar.gz -o${{ runner.temp }} &&
196+
7z x ${{ runner.temp }}\fesapi-2.13.0.0.tar -o${{ runner.temp }} &&
197197
mkdir fesapi-build &&
198198
cd fesapi-build &&
199-
cmake -DCMAKE_TOOLCHAIN_FILE=%VCPKG_INSTALLATION_ROOT%\scripts\buildsystems\vcpkg.cmake -G"Visual Studio 17 2022" -A x64 -T host=x64 -Wno-dev -Wno-deprecated -DCMAKE_INSTALL_PREFIX=${{ runner.temp }}/fesapi-install ${{ runner.temp }}\fesapi-2.12.1.0 &&
199+
cmake -DCMAKE_TOOLCHAIN_FILE=%VCPKG_INSTALLATION_ROOT%\scripts\buildsystems\vcpkg.cmake -G"Visual Studio 17 2022" -A x64 -T host=x64 -Wno-dev -Wno-deprecated -DCMAKE_INSTALL_PREFIX=${{ runner.temp }}/fesapi-install ${{ runner.temp }}\fesapi-2.13.0.0 &&
200200
cmake --build . --config Release -j2 &&
201201
cmake --build . --config Release --target INSTALL &&
202202
%VCPKG_INSTALLATION_ROOT%\vcpkg install openssl boost-beast avro-cpp &&
@@ -239,11 +239,11 @@ jobs:
239239
yum install -y epel-release &&
240240
yum --enablerepo=epel install -y minizip1.2-devel hdf5-devel cmake3 &&
241241
cd / &&
242-
wget https://github.com/F2I-Consulting/fesapi/archive/refs/tags/v2.12.1.0.zip &&
243-
unzip v2.12.1.0.zip &&
242+
wget https://github.com/F2I-Consulting/fesapi/archive/refs/tags/v2.13.0.0.zip &&
243+
unzip v2.13.0.0.zip &&
244244
mkdir fesapi-build &&
245245
cd fesapi-build &&
246-
cmake3 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:STRING=/fesapi-install /fesapi-2.12.1.0 &&
246+
cmake3 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:STRING=/fesapi-install /fesapi-2.13.0.0 &&
247247
cmake3 --build . -j2 --config Release &&
248248
cmake3 --install . &&
249249
cd / &&
@@ -312,11 +312,11 @@ jobs:
312312
cmake --build . -j2 --config Release &&
313313
cmake --install . &&
314314
cd ${{ github.workspace }}/.. &&
315-
wget --no-verbose https://github.com/F2I-Consulting/fesapi/archive/refs/tags/v2.12.1.0.zip &&
316-
unzip v2.12.1.0.zip &&
315+
wget --no-verbose https://github.com/F2I-Consulting/fesapi/archive/refs/tags/v2.13.0.0.zip &&
316+
unzip v2.13.0.0.zip &&
317317
mkdir fesapi-build &&
318318
cd fesapi-build &&
319-
cmake -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT=${{ github.workspace }}/../boost-install -DMINIZIP_ROOT=${{ github.workspace }}/../minizip-install -DHDF5_ROOT=${{ github.workspace }}/../hdf5-install -DHDF5_USE_STATIC_LIBRARIES=TRUE -DCMAKE_INSTALL_PREFIX:STRING=${{ github.workspace }}/../fesapi-install ${{ github.workspace }}/../fesapi-2.12.1.0 &&
319+
cmake -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT=${{ github.workspace }}/../boost-install -DMINIZIP_ROOT=${{ github.workspace }}/../minizip-install -DHDF5_ROOT=${{ github.workspace }}/../hdf5-install -DHDF5_USE_STATIC_LIBRARIES=TRUE -DCMAKE_INSTALL_PREFIX:STRING=${{ github.workspace }}/../fesapi-install ${{ github.workspace }}/../fesapi-2.13.0.0 &&
320320
cmake --build . -j2 --config Release &&
321321
cmake --install . &&
322322
cd ${{ github.workspace }}/.. &&

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ set (FETPAPI_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
1515

1616
# version mechanism
1717
set (Fetpapi_VERSION_MAJOR 0)
18-
set (Fetpapi_VERSION_MINOR 3)
19-
set (Fetpapi_VERSION_PATCH 2)
18+
set (Fetpapi_VERSION_MINOR 4)
19+
set (Fetpapi_VERSION_PATCH 0)
2020
set (Fetpapi_VERSION_TWEAK 0)
2121

2222
set (Fetpapi_VERSION ${Fetpapi_VERSION_MAJOR}.${Fetpapi_VERSION_MINOR}.${Fetpapi_VERSION_PATCH}.${Fetpapi_VERSION_TWEAK})

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Download (build and install if necessary) third party libraries:
1313
- BOOST : All versions from version 1.66 should be ok but you may experience some [min/max build issues](https://github.com/boostorg/beast/issues/1980) using version 1.72 or 1.73.
1414
- AVRO : https://avro.apache.org/releases.html#Download (starting from version 1.9.0 [except 1.11.1](https://issues.apache.org/jira/browse/AVRO-3601), build it with the above boost library.)
15-
- (OPTIONALLY) OpenSSL : version 1.1 is known to work.
15+
- (OPTIONALLY) OpenSSL : version 3.4 is known to work.
1616
- (OPTIONALLY) [FESAPI](https://github.com/F2I-Consulting/fesapi/releases) : All versions from version 2.7.0.0 should be ok but a minimal version of 2.11.0.0 is recommended to automatically recognize FESAPI CMake Variables using CMake find Module and build silently the EtpClient example.
1717

1818
# Configure the build

cmake/fetpapiCsWithFesapi.csproj.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>F2iConsulting.Fetpapi</RootNamespace>
1212
<AssemblyName>${CS_LIBRARY_NAME}</AssemblyName>
13+
<!-- Minimal TargetFrameworkVersion according to SWIG
1314
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
15+
-->
16+
<!-- TargetFrameworkVersion which is ok for a lot of softwares and for Github Runner image -->
17+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1418
<FileAlignment>512</FileAlignment>
1519
<TargetFrameworkProfile />
1620
</PropertyGroup>

cmake/fetpapiCsWithoutFesapi.csproj.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>F2iConsulting.Fetpapi</RootNamespace>
1212
<AssemblyName>${CS_LIBRARY_NAME}</AssemblyName>
13+
<!-- Minimal TargetFrameworkVersion according to SWIG
1314
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
15+
-->
16+
<!-- TargetFrameworkVersion which is ok for a lot of softwares and for Github Runner image -->
17+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1418
<FileAlignment>512</FileAlignment>
1519
<TargetFrameworkProfile />
1620
</PropertyGroup>

0 commit comments

Comments
 (0)