Skip to content

Is there any way to take ownership of received buffer memory *without* pausing the stream? #1436

Answered by nibanks
jeremyong asked this question in Q&A
Discussion options

You must be logged in to vote

I would really recommend starting with the current async model we have of:

  • Return QUIC_STATUS_PENDING
  • Process the buffer(s) on your own thread
  • Complete the send via StreamReceiveComplete

This doesn't mean we stop processing the stream at the QUIC layer. We'll continue to buffer the received data (up to the current FC window), but just won't give you a new callback until you're done with what you already have. If you don't think that would work, could you explain your scenario a bit more to explain why not?

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@jeremyong
Comment options

@nibanks
Comment options

@jeremyong
Comment options

@nibanks
Comment options

@jeremyong
Comment options

Answer selected by jeremyong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants