Skip to content

Conversation

boquan-fang
Copy link
Contributor

Release Summary:

Resolved issues:

Description of changes:

The with_limits() methods for client and server endpoints are wrong. According to the doc, we should explain how to set the maximum idle timeout for an endpoint, while keep all the other default settings. However, the example that we provided doesn't fulfill that requirement.

Hence, I need to update the doc with the correct way of setting the maximum idle timeout.

Call-outs:

Testing:

I wrote it locally on my machine, and it success to compile.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@boquan-fang boquan-fang marked this pull request as ready for review June 24, 2025 23:47
@WesleyRosenblum
Copy link
Contributor

A couple more potential inconsistencies to check:

In server/builder.rs, the example for the with_endpoint_limits method says "Sets the max inflight handshakes for an endpoint, while inheriting the remaining default limits", but the example code doesn't actually set any max inflight handshakes - it just uses the default endpoint limits.

In stream/bidirectional.rs, the example for the id() method shows using connection.open_send_stream() which returns a SendStream, but the method is supposed to demonstrate the id() method of a BidirectionalStream. The example should use connection.open_bidirectional_stream() instead.

* fix another inconsistency for with_endpoint_limits
* fix another inconsistency for id()
@boquan-fang boquan-fang merged commit 88ce3f3 into aws:main Jun 26, 2025
118 checks passed
@boquan-fang boquan-fang deleted the doc-update branch June 26, 2025 16:33
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.

2 participants