Skip to content

Commit

Permalink
upgrade openssl windows to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerZhongAWS committed Aug 14, 2024
1 parent 53e5a29 commit 13081c6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ jobs:
Invoke-WebRequest "https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win64/nasm-2.15.05-win64.zip" -OutFile "nasm-2.15.05-win64.zip"
Expand-Archive "nasm-2.15.05-win64.zip" -Force -DestinationPath "C:\NASM"
$env:Path += ";C:\NASM\nasm-2.15.05\"
git clone https://github.com/openssl/openssl.git
cd openssl
git checkout OpenSSL_1_1_1-stable
Invoke-WebRequest "https://github.com/openssl/openssl/archive/refs/tags/openssl-3.0.12.zip" -OutFile "openssl-3.0.12.zip"
Expand-Archive "openssl-3.0.12.zip" -Force
cd .\openssl-3.0.12\openssl-3.0.12\
perl Configure VC-WIN64A
nmake
nmake install
Expand Down
20 changes: 17 additions & 3 deletions src/TcpAdapterProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,14 @@ namespace aws { namespace iot { namespace securedtunneling {
{
tcp_connection::pointer connection_to_reset = get_tcp_connection(tac, service_id, connection_id);
BOOST_LOG_SEV(this->log, trace) << "Post-reset TCP drain complete. Closing TCP socket for service id " << service_id << " connection id " << connection_id;
BOOST_LOG_SEV(this->log, info) << "Disconnected from: " << connection_to_reset->socket().remote_endpoint();
try
{
BOOST_LOG_SEV(this->log, info) << "Disconnected from: " << connection_to_reset->socket().remote_endpoint();
}
catch (std::exception& e)
{
BOOST_LOG_SEV(this->log, info) << "Disconnecting... remote endpoint not found due to TCP connection already terminated";
}
connection_to_reset->socket_.close();
delete_tcp_socket(tac, service_id, connection_id);
*tcp_write_buffer_drain_complete = true;
Expand Down Expand Up @@ -416,7 +423,14 @@ namespace aws { namespace iot { namespace securedtunneling {
{
tcp_connection::pointer connection_to_reset = get_tcp_connection(tac, service_id, connection_id);
BOOST_LOG_SEV(this->log, trace) << "Post-reset TCP drain complete. Closing TCP socket for service id " << service_id << " connection id " << connection_id;
BOOST_LOG_SEV(this->log, info) << "Disconnected from: " << connection_to_reset->socket().remote_endpoint();
try
{
BOOST_LOG_SEV(this->log, info) << "Disconnected from: " << connection_to_reset->socket().remote_endpoint();
}
catch (std::exception& e)
{
BOOST_LOG_SEV(this->log, info) << "Disconnecting... remote endpoint not found due to TCP connection already terminated";
}
connection_to_reset->socket_.close();
delete_tcp_socket(tac, service_id, connection_id);
};
Expand Down Expand Up @@ -507,7 +521,7 @@ namespace aws { namespace iot { namespace securedtunneling {
}
catch (std::exception& e)
{
BOOST_LOG_SEV(this->log, info) << "Disconnecting... remote endpoint not found";
BOOST_LOG_SEV(this->log, info) << "Disconnecting... remote endpoint not found due to TCP connection already terminated";
}
connection->tcp_write_buffer_.consume(connection->tcp_write_buffer_.max_size());
// this works on Linux x86_64 but causes a bus error on Darwin arm64, commenting it out
Expand Down

0 comments on commit 13081c6

Please sign in to comment.