-
Notifications
You must be signed in to change notification settings - Fork 5k
enh(transport): add transport safety improvements and test cases #35189
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -97,6 +97,8 @@ void saslBufferClear(SSaslBuffer* buf) { | |
| saslBufferClearImpl(buf); | ||
| } | ||
|
|
||
| #if !defined(TD_ENTERPRISE) | ||
|
|
||
| void saslLibInitImpl() { | ||
| return; | ||
| } | ||
|
|
@@ -132,6 +134,7 @@ int32_t saslConnHandleAuthImpl(SSaslConn * pConn, const char* input, int32_t len | |
| } | ||
|
|
||
| int8_t saslConnShoudDoAuthImpl(SSaslConn * pConn) { | ||
| if (pConn == NULL) return 1; | ||
| return 0; | ||
|
Comment on lines
136
to
138
|
||
| } | ||
|
|
||
|
|
@@ -149,4 +152,4 @@ void saslBufferClearImpl(SSaslBuffer* buf) { | |
| return; | ||
| } | ||
|
|
||
| //#endif | ||
| #endif | ||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -1045,6 +1045,8 @@ | |||||||
| ,,y,.,./ci/pytest.sh pytest cases/70-Cluster/test_5dnode_3mnode_stop.py -N 5 -M 3 | ||||||||
| ,,y,.,./ci/pytest.sh pytest cases/70-Cluster/test_5dnode_3mnode_stop.py -N 5 -M 3 -I False | ||||||||
|
|
||||||||
| # 73-TLS | ||||||||
| ,,y,.,./ci/pytest.sh pytest cases/73-TLS/test_tls.py | ||||||||
|
||||||||
| ,,y,.,./ci/pytest.sh pytest cases/73-TLS/test_tls.py | |
| # Disabled pending fix/validation of cases/73-TLS/test_tls.py TLS file generation in CI. | |
| # ,,y,.,./ci/pytest.sh pytest cases/73-TLS/test_tls.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return value "1" is used here to signal that authentication should be skipped when "pConn" is NULL. While this correctly prevents a potential crash or connection drop in the caller (e.g., in "transSvr.c"), the use of a magic number in a function named "saslConnShoudDoAuthImpl" is counter-intuitive, as "1" might be expected to mean "True, should do auth". Adding an inline comment would clarify that "1" means "already inited" or "skip".