Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speeding Up Sending By Using Zero for Write Interval #170

Open
KristopherSmith opened this issue Nov 26, 2019 · 0 comments
Open

Speeding Up Sending By Using Zero for Write Interval #170

KristopherSmith opened this issue Nov 26, 2019 · 0 comments

Comments

@KristopherSmith
Copy link

KristopherSmith commented Nov 26, 2019

From sample_push_many.php lines 45-47 a comment reads:

// To speed up the sending operations, use Zero as parameter but
// some messages may be lost.

What is the technical reason for messages getting lost?

I’m looking to speed up the performance of my sending (it’s too slow for production) and after reading a Technical Note from Apple, they suggest to avoid checking for an error response every time I write. So instead of checking every time, I’m going to do it at some interval (i.e. 25,000 sends).

Knowing this, does it make sense to have a write interval in this use case? My original thought was the write interval’s purpose was to give the fread() enough time to capture an error response. But that may not be the intention, as it could be there to prevent some sort of sending limit via the socket.

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

No branches or pull requests

1 participant