Skip to content

Clarify connection handles, parallel starts and TLS listener setup - #654

Open
bsergean wants to merge 3 commits into
masterfrom
docs/connection-ownership-examples
Open

bsergean wants to merge 3 commits into
masterfrom
docs/connection-ownership-examples

Conversation

@bsergean

Copy link
Copy Markdown
Collaborator

Clarify the existing APIs that answer #472, #522 and #425: retaining weak connection handles for later sends, starting multiple clients concurrently, and explicitly enabling TLS on a server listener.

Fix the connection-setup example's callback delimiters, missing reference in the message callback, and access to a private ConnectionState field. Replace the TLS designated-initializer example with C++11-compatible server/client configuration. Describe safe weak-handle lookup by connection ID and avoid implying the setup callback is deprecated.

Validation: the corrected connection-setup and TLS examples compile with -std=c++11 -pedantic-errors. The corrected shutdown/concurrent-client reproduction completed ten rounds and twenty connections under ThreadSanitizer in 81 ms. Existing proxy and TLS tests also pass on current master.

This branch has not been deployed

No deployments
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.

1 participant