-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix zero size reads for Engine Socket.
InputStream explicitly allows zero size reads without attempting IO or blocking. We do this correctly for the fd-socket but missed it for the Engine socket. Not clear whether zero sized read should trigger a TLS handshake, but it always has on Android so keeping it that way. Bug manifested as a flaky test hang. Fixed the test to explicitly check corner cases and removed un-needed concurrency.
- Loading branch information
Showing
2 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters