Skip to content

Commit 4bdcece

Browse files
authored
feat/heartbeat,redis_security,test_frame,chat_thread,transaction_in_mysql,feat/fake_KV_storage
[REDIS]: add timeout setting for heart beat signal [CLIENT/SERVER]: add heart beat code [BUG FIX]: add protect code to secure connectionRAII to prevent inner stub becoming invalid [SECURITY]: redis & mysql check securty [SERVER]: server shutdown with defered session shutdown after it trigger a write/read event [TESTS]: add test framework [ADD]:add chatthread for client [ADD]:add transaction in mysql DB [REMOVE]:remove chattinghistory class because of designed flow and no longer needs std::variant [BUG FIX]: grpc argument issue fixed! [ADD]:add customer KV storage to keep the record in sequence [REFACTOR]
2 parents 717d2e4 + 9f8b9dd commit 4bdcece

File tree

135 files changed

+6738
-3052
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+6738
-3052
lines changed

CMakeLists.txt

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,25 @@ option(DIMS_BUILD_TESTING "Enable DistributedIMSystem building tests" ON)
55

66
if(NOT CMAKE_BUILD_TYPE)
77
set(CMAKE_BUILD_TYPE Release)
8-
message(STATUS "No CMAKE_BUILD_TYPE found, Set Release build as default.")
8+
message(STATUS "No CMAKE_BUILD_TYPE found, Set Release build as default.")
99
endif()
1010

1111
if("${CMAKE_BUILD_TYPE}" MATCHES "[Rr]elease")
1212
message(STATUS "This is a Release build.")
13-
set(TBB_TEST OFF CACHE BOOL "Disable oneTBB tests" FORCE)
14-
set(DIMS_BUILD_TESTING OFF CACHE BOOL "Disable tests generation" FORCE)
15-
endif()
16-
17-
if("${CMAKE_BUILD_TYPE}" MATCHES "[Dd]ebug")
13+
set(TBB_TEST
14+
OFF
15+
CACHE BOOL "Disable oneTBB tests" FORCE)
16+
set(DIMS_BUILD_TESTING
17+
OFF
18+
CACHE BOOL "Disable tests generation" FORCE)
19+
else()
1820
message(STATUS "This is a Debug build.")
19-
add_subdirectory(external/backward-cpp)
21+
set(DIMS_BUILD_TESTING
22+
ON
23+
CACHE BOOL "Disable tests generation" FORCE)
24+
enable_testing()
25+
add_subdirectory(tests)
26+
2027
endif()
2128

2229
if(NOT MSVC)
@@ -26,6 +33,13 @@ if(NOT MSVC)
2633
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_PROGRAM})
2734
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE_PROGRAM})
2835
endif()
36+
else()
37+
# Enable MSVC exceptions (as above)
38+
message(STATUS "MSVC detected, enabling /EHsc")
39+
set(CMAKE_CXX_FLAGS
40+
"${CMAKE_CXX_FLAGS} /EHsc"
41+
CACHE STRING "MSVC exception flag" FORCE)
42+
add_compile_options(/EHsc)
2943
endif()
3044

3145
set(CMAKE_CXX_STANDARD 17)
@@ -69,15 +83,6 @@ set(BOOST_INCLUDE_LIBRARIES
6983
url
7084
json)
7185

72-
# Enable MSVC exceptions (as above)
73-
if(MSVC)
74-
message(STATUS "MSVC detected, enabling /EHsc")
75-
set(CMAKE_CXX_FLAGS
76-
"${CMAKE_CXX_FLAGS} /EHsc"
77-
CACHE STRING "MSVC exception flag" FORCE)
78-
add_compile_options(/EHsc)
79-
endif()
80-
8186
# -----------------------------
8287
# External Dependencies (FetchContent)
8388
# -----------------------------
@@ -98,11 +103,6 @@ FetchContent_MakeAvailable(boost gRPC)
98103
set(PROTOBUF_PROTOC_EXECUTABLE $<TARGET_FILE:protoc>)
99104
set(_GRPC_CPP_PLUGIN_EXECUTABLE $<TARGET_FILE:grpc_cpp_plugin>)
100105

101-
if (DIMS_BUILD_TESTING)
102-
enable_testing()
103-
add_subdirectory(tests)
104-
endif()
105-
106106
add_library(boost_common INTERFACE)
107107
target_link_libraries(boost_common INTERFACE Boost::asio Boost::system
108108
Boost::filesystem Boost::uuid)

DistributedIMSystem.sql

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)