Compile fixes for SSL on Windows 64bit - #2555
Conversation
* ACE/ace/SSL/SSL_SOCK_Acceptor.cpp:
* ACE/ace/SSL/SSL_SOCK_Stream.inl:
* ACE/examples/IPC_SAP/SSL_SAP/SSL-server-simple.cpp:
* ACE/ace/SSL/SSL_SOCK_Connector.cpp:
* ACE/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp:
* ACE/protocols/ace/INet/SSL_Proxy_Connector.cpp:
|
Tick the box to add this pull request to the merge queue (same as
|
|
Fixed DOCGroup/bugzilla#4179 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughSSL select width calculations are now platform-conditional across SSL socket, proxy, and example event-loop code. Windows SSL descriptor conversions use explicit ChangesSSL portability and cast updates
Estimated code review effort: 1 (Trivial) | ~5 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
* ACE/ace/SSL/SSL_SOCK_Connector.cpp:
* ACE/ace/SSL/SSL_SOCK_Stream.inl:
* ACE/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp:
* ACE/examples/IPC_SAP/SSL_SAP/SSL-server-simple.cpp:
* ACE/protocols/ace/INet/SSL_Proxy_Connector.cpp:
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@ACE/protocols/ace/INet/SSL_Proxy_Connector.cpp`:
- Line 151: Update the ACE::select call in SSL_Proxy_Connector to avoid
reinterpret_cast<int>(handle): pass 0 for the Windows HANDLE path, where nfds is
ignored, and use static_cast<int>(handle) only on non-Windows platforms.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 0a1dc305-5c65-4948-8d57-5e3aa6270348
📒 Files selected for processing (5)
ACE/ace/SSL/SSL_SOCK_Connector.cppACE/ace/SSL/SSL_SOCK_Stream.inlACE/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cppACE/examples/IPC_SAP/SSL_SAP/SSL-server-simple.cppACE/protocols/ace/INet/SSL_Proxy_Connector.cpp
🚧 Files skipped from review as they are similar to previous changes (4)
- ACE/ace/SSL/SSL_SOCK_Stream.inl
- ACE/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp
- ACE/ace/SSL/SSL_SOCK_Connector.cpp
- ACE/examples/IPC_SAP/SSL_SAP/SSL-server-simple.cpp
* ACE/ace/SSL/SSL_SOCK_Acceptor.cpp:
* ACE/ace/SSL/SSL_SOCK_Connector.cpp:
* ACE/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp:
* ACE/examples/IPC_SAP/SSL_SAP/SSL-server-simple.cpp:
* ACE/protocols/ace/INet/SSL_Proxy_Connector.cpp:
* ACE/ace/ACE.cpp:
* ACE/ace/SSL/SSL_SOCK_Acceptor.cpp:
* ACE/ace/SSL/SSL_SOCK_Stream.cpp:
* ACE/ace/SSL/SSL_SOCK_Connector.cpp:
* ACE/ace/SSL/SSL_SOCK_Stream.inl:
* ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp:
* ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp:
* ACE/examples/C++NPv2/TPC_Logging_Server.cpp:
* ACE/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp:
* ACE/protocols/ace/INet/SSL_Proxy_Connector.cpp:
* ACE/ace/ACE.cpp:
* ACE/ace/SSL/SSL_SOCK_Acceptor.cpp:
* ACE/ace/SSL/SSL_SOCK_Connector.cpp:
* ACE/examples/IPC_SAP/SSL_SAP/SSL-server-simple.cpp:
* ACE/protocols/ace/INet/SSL_Proxy_Connector.cpp:
* ACE/ace/SSL/SSL_SOCK_Stream.cpp:
* ACE/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp:
* ACE/ace/SSL/SSL_Context.cpp:
* ACE/examples/IPC_SAP/SSL_SAP/SSL-server.cpp:
Summary by CodeRabbit
select()width/range handling across SSL accept/connect, proxy connector, SSL stream, and related example event loops without changing behavior.select()calculations more explicit.