Skip to content

{183434696}: Use non-blocking for SSL client socket#5858

Merged
akshatsikarwar merged 2 commits intobloomberg:mainfrom
riverszhang89:ssl_hang_v2
Apr 14, 2026
Merged

{183434696}: Use non-blocking for SSL client socket#5858
akshatsikarwar merged 2 commits intobloomberg:mainfrom
riverszhang89:ssl_hang_v2

Conversation

@riverszhang89
Copy link
Copy Markdown
Contributor

A partial write of an SSL encrypted block may cause the client to hang in SSL_read. Hence this patch uses non-blocking IO for SSL client sockets.

Copy link
Copy Markdown

@roborivers roborivers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
sp [db unavailable at finish]
cldeadlock
analyze **quarantined**
consumer_non_atomic_default_consumer_generated **quarantined**
api_tst

Comment thread plugins/newsql/newsql.c
_has_snapshot(clnt, resp);
_has_features(clnt, resp);
return newsql_response(clnt, &resp, 1);
if (debug_switch_stall_ssl_write()) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep these inside COMDB2_TEST?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Mohit ... I must've overlooked it here.

A partial write of an SSL encrypted block may cause the client to hang in SSL_read.
Hence this patch uses non-blocking IO for SSL client sockets.

Signed-off-by: Rivers Zhang <hzhang320@bloomberg.net>
Copy link
Copy Markdown

@roborivers roborivers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
reco-ddlk-sql **quarantined**
consumer_non_atomic_default_consumer_generated **quarantined**
api_tst
alias

Signed-off-by: Akshat Sikarwar <asikarwar1@bloomberg.net>
@akshatsikarwar akshatsikarwar merged commit 07b2be3 into bloomberg:main Apr 14, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants