forked from java-native-access/jna
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix various errors while dealing with long streams (java-native-access#3
) Motivation: Server should be able to return an arbitrarily long stream, i.e. keep writing data as long as the channel is writable, and resume writing data when getting the writabilityChanged event. Modications: - Fix infinite loop in QuicheQuicChannel.streamSendMultiple() when Quiche.quiche_conn_stream_send() returns 0. - Fix StackOverflowError when calling fireChannelReadComplete() when no read happened. - Fix IndexOutOfBoundsException when Quiche.quiche_conn_stream_recv() returns Quiche.QUICHE_ERR_DONE. Result: Server can send a long stream. Co-authored-by: Thomas Devanneaux <[email protected]>
- Loading branch information
Showing
2 changed files
with
10 additions
and
7 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