Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development/websocket #1796

Draft
wants to merge 83 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
6f4705c
[WebSocket/WebSocketLink] : Enable unsollicited 'Pong' and rename enu…
msieben Oct 25, 2024
aa8c25d
[WebSocket/WebSocketLink] : METROL-1087
msieben Nov 6, 2024
e923fcf
[WebSocket/WebSocketLink] : rename forgotten 'WEBSERVER' to 'WEBSERVICE'
msieben Nov 7, 2024
43c3174
Merge branch 'master' into development/websocket
pwielders Nov 7, 2024
4769766
[Tests/unit/core] : add 'test_websocket'
msieben Nov 7, 2024
45bfec5
[Tests/unit/core] : Add missing VERBOSE preprocessor directive to 'te…
msieben Nov 21, 2024
a206e19
[Tests/unit/core] : Add 'SecureSocketPort' tests to 'test_websocket'
msieben Nov 21, 2024
4261616
[Source/crypto/SecureSocketPort] : Initialize when context and SSL st…
msieben Nov 21, 2024
d9d1dd4
[Source/cryptalgo/SecureSocketPort] : (Re)initialize if socket has be…
msieben Nov 21, 2024
41fde68
[Source/cryptalgo/SecureSocketPort] : Context settings do not (necess…
msieben Nov 21, 2024
efe82e0
[Source/cryptalgo/SecureSocketPort] : check return value for setting …
msieben Nov 21, 2024
4a8b4b1
[Source/cryptalgo/SecureSocketPort] : improve return value checking i…
msieben Nov 21, 2024
bdaff29
[Source/cryptalgo/SecureSocketPort] : correct check for invalid context
msieben Nov 21, 2024
25634c6
[Source/core/SocketPort Source/cryptalgo/SecureSocketPort Source/webs…
msieben Nov 22, 2024
f6e297e
[Source/cryptalgo/SecureSocketPort] : use the generic method
msieben Nov 22, 2024
980e387
[Source/cryptalgo/SecureSocketPort] : Re-order creation of structures
msieben Nov 22, 2024
25a61a3
[Source/cryptalgo/SecureSocketPort] : do not return error value for S…
msieben Nov 22, 2024
d351981
[Source/cryptalgo/SecureSocketPort] : add assert for invalid context …
msieben Nov 22, 2024
080e84a
Merge branch 'master' into development/websocket
msieben Nov 22, 2024
03a69dc
Delete Source/cryptalgo/SecureSocketPort.cpp.modified
msieben Nov 22, 2024
a596018
Delete Source/cryptalgo/SecureSocketPort.h.modified
msieben Nov 22, 2024
f7dbcce
Delete Source/cryptalgo/SecureSocketPort.modifications
msieben Nov 22, 2024
d2fcaab
[Source/cryptalgo/SecureSocketPort Tests/unit/core] : Prepare for ser…
msieben Nov 22, 2024
f53b248
[Source/cryptalgo/SecureSocketPort] : peer certificate validation onl…
msieben Nov 25, 2024
8451815
[Source/cryptalgo/SecureSocketPort] : remove handshake value from ini…
msieben Nov 26, 2024
42a5a0c
[Spurce/cryptalgo/SecuresocketPort] : reverse order handshake and val…
msieben Nov 26, 2024
f095be4
[Source/cryptalgo/SecureSocketPort] : add 'Handler's' move assignment…
msieben Nov 26, 2024
821bdfb
[Source/cryptalgo/SecureSocketPort] : remove enum class 'sockettype_t'
msieben Nov 26, 2024
a05570f
[Source/cryptalgo/SecureSocketPort] : enable setting a custom (server…
msieben Nov 27, 2024
3a99e1f
[Source/cryptalgo/SecureSocketPort] : eanble setting a client (custom…
msieben Nov 27, 2024
2449ec3
[Source/cryptalgo/SecureSocketPort] : prepare for client server certi…
msieben Nov 28, 2024
3c80b5b
[Source/cryptalgo/SecureSocketPort Tests/unit/core] : Use OpenSSL pro…
msieben Nov 28, 2024
492bb04
[Source/cryptalgo/SecureSocketPort] : remove 'always on' client certi…
msieben Dec 3, 2024
3996ada
[Source/cryptalgo/SecureSocketPort] : explicitly include header 'open…
msieben Dec 3, 2024
388c061
Merge branch 'master' into development/websocket
msieben Dec 3, 2024
0744a75
[Source/cryptalgo/SecureSocketPort] : Check for minimum OpenSSL version
msieben Dec 3, 2024
be62841
[Source/cryptalgo/SecureSocketPort] : Make error message more express…
msieben Dec 5, 2024
63793ac
[Tests/unit/core] : Prefix certificate and private key paths with env…
msieben Dec 5, 2024
050117b
[Tests/unit/core] : add certificates and private keys for testing
msieben Dec 5, 2024
c8af2f0
[Tests/unit/core] : check 'SecureSocketPort' is enabled.
msieben Dec 5, 2024
64413b1
[Tests/unit/core] : Try to 'force' 'SECURESOCKETS_ENABLED'
msieben Dec 5, 2024
92baf20
[Tests/unit/core] : adjust timings
msieben Dec 6, 2024
e5d4304
[Tests] : add 'README'
msieben Dec 9, 2024
f47bf18
[Source/cryptalgo/SecureSocketPort] : 'Read()' and 'Write()' map to a…
msieben Dec 11, 2024
9e8d462
[Source/cryptalgo/SecureSocketPort] : add additional checks
msieben Dec 12, 2024
85eea35
[Source/cryptalgo/SecureSocketPort] : wait for the socket to become r…
msieben Dec 17, 2024
d2c4a76
[Source/cryptalgo/SecureSocketPort] : refactor 'Update'
msieben Dec 17, 2024
dcd450c
[Source/cryptalgo/SecureSocketPort] : Improve non-blocking I/O handling
msieben Dec 20, 2024
d3a5f8c
[Tests/unit/core] : amend ' dcd450c'
msieben Dec 20, 2024
675b64f
[Source/core/SocketServer / Source/cryptalgo/SecureSocketPort] : part…
msieben Jan 2, 2025
2a81ef3
Merge branch 'master' into development/websocket
msieben Jan 2, 2025
3aa2d41
[Source/cryptalgo/SecureSocketPort] : suppress narrowing conversion w…
msieben Jan 2, 2025
f4adf70
[Tests/unit/core] : only build 'test_websocket'
msieben Jan 2, 2025
9bfc4e9
[Tests/unit/core] : Update 'test_websocket'
msieben Jan 2, 2025
825b27a
Revert "[Tests/unit/core] : only build 'test_websocket'"
msieben Jan 2, 2025
70d8237
[Source] : Enable SecureSocketPort by default
msieben Jan 3, 2025
e5a90d1
[Source/cryptalgo/SecureSocketPort / Tests/unit/core] : Reduce exposu…
msieben Jan 3, 2025
d8807fb
[Source/cryptalgo/SecureSocketPort]: Reduce compiler warnings
msieben Jan 3, 2025
02b81f7
[Source/cryptalgo/SecuresocketPort] : amend 'e5a90'
msieben Jan 3, 2025
cc4c1e8
[Tests] : Reduce compiler warnings
msieben Jan 3, 2025
1ef1e1c
[Tests/unit/core] : Reduce build warnings in 'Release'
msieben Jan 3, 2025
be02c5a
[Source/cryptalgo/SecureSocketPort] : remove 'static_assert'
msieben Jan 6, 2025
d247105
[Source/cryptalgo/SecureSocketPort] : refactor 'struct timeval ASSERT'
msieben Jan 6, 2025
6478051
[Source/core/Portabaility / Source/cryptalgo/SecureSocketPort] : Use …
msieben Jan 6, 2025
bbf09bd
[Source/cryptalgo/SecureSocketPort] : improve thread-safety 'Certific…
msieben Jan 6, 2025
473a80b
Merge branch 'master' into development/websocket
msieben Jan 6, 2025
cf8383a
Development/buildwarnings (#1821)
msieben Jan 6, 2025
25d16c7
[Source/core/SecureSocketPort] : CWE-569
msieben Jan 7, 2025
4829f72
[Tests/unit/core] : Uncomment 'VERBOSE' flags
msieben Jan 7, 2025
2f2be2d
[Source/cryptalgo/SecureSocketPort] : CWE-569
msieben Jan 7, 2025
cd54ba8
Merge branch 'master' into development/websocket
msieben Jan 7, 2025
da99b1e
[Source/cryptalgo/SecureSocketPort / Tests/unit/core] : Move 'IValida…
msieben Jan 8, 2025
1572286
[Source/cryptalgo/SecureSocketPort / tests/unit/core] : Differentiate…
msieben Jan 9, 2025
06a2e31
--amend
msieben Jan 9, 2025
48b5599
[Source/cryptalgo/SecureSocketPort] : disable default constructor
msieben Jan 9, 2025
2299da6
[Source/cryptalgo/SecureSocket / Tests/unit/core] : Improve thread sa…
msieben Jan 9, 2025
23f9df1
[Tests/unit/core] : Re-enable disabled tests in 'test_websocket'
msieben Jan 9, 2025
a29a0b5
[Tests/unit/core] : Re-enable 'all' tests
msieben Jan 9, 2025
c96074a
[Tests/unit/core] : add payload tests to 'test_websocket'
msieben Jan 13, 2025
d9804c5
Merge branch 'master' into development/websocket
msieben Jan 13, 2025
4008468
[cryptalgo/SecureSocketPort] : indicate object can be move from
msieben Jan 13, 2025
928bccd
[cryptalgo/SecureSocketPort] : improve use of list
msieben Jan 13, 2025
82bdb79
[cryptalgo/SecureSocketPort] : remove comment
msieben Jan 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ option(DEADLOCK_DETECTION
"Enable deadlock detection tooling." OFF)
option(DISABLE_USE_COMPLEMENTARY_CODE_SET
"Disable the complementary code set" OFF)

option(SECURE_SOCKET
"Enable SecureSocketPort" ON)

if(HIDE_NON_EXTERNAL_SYMBOLS)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
Expand Down
6 changes: 3 additions & 3 deletions Source/core/SocketPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1144,11 +1144,11 @@ namespace Thunder {
}

/* virtual */ int32_t SocketPort::Read(uint8_t buffer[], const uint16_t length) const {
return (::recv(m_Socket, reinterpret_cast<char*>(buffer), length, 0));
return (::recv(m_Socket, reinterpret_cast<char*>(buffer), length, MSG_NOSIGNAL));
}

/* virtual */ int32_t SocketPort::Write(const uint8_t buffer[], const uint16_t length) {
return (::send(m_Socket, reinterpret_cast<const char*>(buffer), length, 0));
return (::send(m_Socket, reinterpret_cast<const char*>(buffer), length, MSG_NOSIGNAL));
}

void SocketPort::Write()
Expand Down Expand Up @@ -1178,7 +1178,7 @@ namespace Thunder {

sendSize = ::sendto(m_Socket,
reinterpret_cast<const char*>(&(m_SendBuffer[m_SendOffset])),
m_SendBytes - m_SendOffset, 0,
m_SendBytes - m_SendOffset, MSG_NOSIGNAL,
static_cast<const NodeId&>(m_RemoteNode),
m_RemoteNode.Size());

Expand Down
Loading
Loading