Skip to content

Add receiveatmost.#1146

Closed
robertabcd wants to merge 1 commit intoopenresty:masterfrom
robertabcd:receiveatmost
Closed

Add receiveatmost.#1146
robertabcd wants to merge 1 commit intoopenresty:masterfrom
robertabcd:receiveatmost

Conversation

@robertabcd
Copy link
Copy Markdown

receiveatmost is just like receive, but does not wait until the receive
buffer is fully filled, or the timeout passes. It receive at least 1
byte and at most N bytes, specified by the argument.

This is useful as there's currently no nonblocking reads. Users can
process input as soon as data arrives.

Note: I'm not very familiar with nginx development. Inputs are appreciated.

receiveatmost is just like receive, but does not wait until the receive
buffer is fully filled, or the timeout passes. It receive at least 1
byte and at most N bytes, specified by the argument.

This is useful as there's currently no nonblocking reads. Users can
process input as soon as data arrives.
@agentzh
Copy link
Copy Markdown
Member

agentzh commented Aug 25, 2017

@robertabcd I think we already have a similar pending PR:

#861

We meant to merge it once it passes all of our review.

@robertabcd
Copy link
Copy Markdown
Author

Oh, didn't notice that. That one certainly looks better. Feel free to drop this one, as I noticed some tests are failing. It would take time for me to fix that too.

@mergify
Copy link
Copy Markdown

mergify Bot commented Jun 26, 2020

This pull request is now in conflict :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants