-
Notifications
You must be signed in to change notification settings - Fork 326
Buffer writes not working as expected #78
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
Comments
Ping |
I will look at implementing this today. |
Great |
The following seems to be working for me:
The documentation for libmemcached says that the writes will be flushed on get operation automatically. This doesn't seem to work without OPT_NO_BLOCK set to 1. |
That works:
I didn't know is not present at documentation
Neither here: But memcached lib have a flush buffers: I think php-memcached should have too, don't you think? |
I tested memcached_flush_buffers without NO_BLOCK set on and it doesn't seem to be working. I'll add flush buffers anyhow, as it probably works with NO_BLOCK |
I can't find anything on libmemcached documentation that point why don't work without NO_BLOCK (or that is expected), do you think is better to fill a bug report? |
I'll try to create a reproducible test case in C and see if the issue persists. I've discovered other issues today as well so I can do the upstream report. |
It's been a few years, can this issue be closed now? Resolved, fixed, a new function |
Memcached::OPT_BUFFER_WRITES
Enables or disables buffered I/O. Enabling buffered I/O causes storage commands to "buffer" instead of being sent. Any action that retrieves data causes this buffer to be sent to the remote connection. Quitting the connection or closing down the connection will also cause the buffered data to be pushed to the remote connection.
Type: boolean, default: FALSE.
@ http://php.net/manual/en/memcached.constants.php
I don't understand why there isn't a method like flush buffers, is already implemented at libmemcached:
http://docs.libmemcached.org/memcached_flush_buffers.html
The text was updated successfully, but these errors were encountered: