Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@zfields
Copy link
Contributor

@zfields zfields commented Sep 25, 2023

ensure reset will consume all available bytes,
regardless of the amount. Previously, the 5-second
timeout would prevent reset from consuming large
outstanding, binary data payloads.

@zfields zfields marked this pull request as ready for review September 25, 2023 20:34
@m-mcgowan
Copy link
Contributor

LGTM. Is _Reset() only ever called on error? If not, I would create a helper function _ResetAfterError() which just calls _Reset(). I feel that makes the intent clearer and gives a single point of modification should we want to add additional error handling separate from a "normal" reset.

ensure reset will consume all available bytes,
regardless of the amount. Previously, the 5-second
timeout would prevent reset from consuming large
outstanding, binary data payloads.
@zfields zfields merged commit e7f53c4 into master Sep 27, 2023
@zfields zfields deleted the zak-mem-drain branch September 27, 2023 15:26
@zfields
Copy link
Contributor Author

zfields commented Sep 27, 2023

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.

3 participants