From 4eff6ad417d2072c44ae6546e95359090c333595 Mon Sep 17 00:00:00 2001
From: Pantelis Sopasakis
Date: Tue, 26 Mar 2024 14:02:48 +0000
Subject: [PATCH 1/3] Addressing issue #341
About:
- handling kill code in TCP iface
- Update changelog (v0.8.1)
---
open-codegen/CHANGELOG.md | 9 +++++++++
open-codegen/opengen/templates/tcp/tcp_server.rs | 4 ++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/open-codegen/CHANGELOG.md b/open-codegen/CHANGELOG.md
index 81a2df78..22e437b9 100644
--- a/open-codegen/CHANGELOG.md
+++ b/open-codegen/CHANGELOG.md
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
Note: This is the Changelog file of `opengen` - the Python interface of OpEn
+
+
+## [0.8.1] - Unreleased
+
+### Changed
+
+- Handling kill code in TCP server interface to get rid of warning
+
## [0.8.0] - 2024-03-20
### Added
@@ -185,6 +193,7 @@ Note: This is the Changelog file of `opengen` - the Python interface of OpEn
* Project-specific `tcp_iface` TCP interface
* Fixed `lbfgs` typo
+[0.8.1]: https://github.com/alphaville/optimization-engine/compare/opengen-0.8.0...opengen-0.8.1
[0.8.0]: https://github.com/alphaville/optimization-engine/compare/opengen-0.7.1...opengen-0.8.0
[0.7.1]: https://github.com/alphaville/optimization-engine/compare/opengen-0.7.0...opengen-0.7.1
[0.7.0]: https://github.com/alphaville/optimization-engine/compare/opengen-0.6.13...opengen-0.7.0
diff --git a/open-codegen/opengen/templates/tcp/tcp_server.rs b/open-codegen/opengen/templates/tcp/tcp_server.rs
index faa5c317..042e176f 100644
--- a/open-codegen/opengen/templates/tcp/tcp_server.rs
+++ b/open-codegen/opengen/templates/tcp/tcp_server.rs
@@ -227,8 +227,8 @@ fn run_server(tcp_config: &TcpServerConfiguration) {
&mut p,
&mut stream);
}
- ClientRequest::Kill(_) => {
- info!("Quitting on request");
+ ClientRequest::Kill(kill_code) => {
+ info!("Quitting on request (kill code: {})", kill_code);
break;
}
ClientRequest::Ping(ping_code) => {
From ac6ca4bde8118e108fc04ddf628cd107b4390828 Mon Sep 17 00:00:00 2001
From: Pantelis Sopasakis
Date: Mon, 14 Oct 2024 16:19:50 +0100
Subject: [PATCH 2/3] final touch
---
open-codegen/CHANGELOG.md | 2 +-
open-codegen/VERSION | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/open-codegen/CHANGELOG.md b/open-codegen/CHANGELOG.md
index 22e437b9..9462922f 100644
--- a/open-codegen/CHANGELOG.md
+++ b/open-codegen/CHANGELOG.md
@@ -9,7 +9,7 @@ Note: This is the Changelog file of `opengen` - the Python interface of OpEn
-## [0.8.1] - Unreleased
+## [0.8.1] - 2024-10-14
### Changed
diff --git a/open-codegen/VERSION b/open-codegen/VERSION
index 8adc70fd..c18d72be 100644
--- a/open-codegen/VERSION
+++ b/open-codegen/VERSION
@@ -1 +1 @@
-0.8.0
\ No newline at end of file
+0.8.1
\ No newline at end of file
From 4a97cadece395b192d645c622f91137036047fe0 Mon Sep 17 00:00:00 2001
From: Pantelis Sopasakis
Date: Mon, 14 Oct 2024 16:22:50 +0100
Subject: [PATCH 3/3] fix conflicts
---
open-codegen/CHANGELOG.md | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/open-codegen/CHANGELOG.md b/open-codegen/CHANGELOG.md
index 203c2bf3..5f960b32 100644
--- a/open-codegen/CHANGELOG.md
+++ b/open-codegen/CHANGELOG.md
@@ -213,13 +213,11 @@ Note: This is the Changelog file of `opengen` - the Python interface of OpEn
* Project-specific `tcp_iface` TCP interface
* Fixed `lbfgs` typo
-<<<<<<< HEAD
-[0.8.1]: https://github.com/alphaville/optimization-engine/compare/opengen-0.8.0...opengen-0.8.1
-=======
+
+[0.9.1]: https://github.com/alphaville/optimization-engine/compare/opengen-0.9.0...opengen-0.9.1
[0.9.0]: https://github.com/alphaville/optimization-engine/compare/opengen-0.8.1...opengen-0.9.0
[0.8.1]: https://github.com/alphaville/optimization-engine/compare/v0.9.0...opengen-0.8.1
[0.8.1]: https://github.com/alphaville/optimization-engine/compare/v0.9.0...opengen-0.8.1
->>>>>>> master
[0.8.0]: https://github.com/alphaville/optimization-engine/compare/opengen-0.7.1...opengen-0.8.0
[0.7.1]: https://github.com/alphaville/optimization-engine/compare/opengen-0.7.0...opengen-0.7.1
[0.7.0]: https://github.com/alphaville/optimization-engine/compare/opengen-0.6.13...opengen-0.7.0