Skip to content

Fix: Check for ErrorKind::WouldBlock in LazyConfigAcceptor - #48

Merged
quininer merged 1 commit into
rustls:mainfrom
jbr:send-alert-would-block-in-lazy-config-acceptor
Mar 8, 2024
Merged

quininer merged 1 commit into
rustls:mainfrom
jbr:send-alert-would-block-in-lazy-config-acceptor

Conversation

@jbr

@jbr jbr commented Mar 5, 2024

Copy link
Copy Markdown
Contributor

Similar to #47

@djc

djc commented Mar 6, 2024

Copy link
Copy Markdown
Member

Since this seems a little finicky, could you add a test?

@jbr

jbr commented Mar 6, 2024

Copy link
Copy Markdown
Contributor Author

Good call with the test, the original implementation didn't handle the possibility that the write buffer was too small to fit the whole alert

@djc
djc requested review from ctz and quininer March 7, 2024 08:57

@ctz ctz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for catching these!

@djc

djc commented Mar 7, 2024

Copy link
Copy Markdown
Member

(Needs a rebase now.)

@quininer quininer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@jbr

jbr commented Mar 7, 2024

Copy link
Copy Markdown
Contributor Author

Rebased

@quininer
quininer merged commit d26502c into rustls:main Mar 8, 2024
@quininer

quininer commented Mar 8, 2024

Copy link
Copy Markdown
Member

Thank you!

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