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

fix: fix memcache bugs #1745

Merged
merged 1 commit into from
Aug 27, 2023
Merged

fix: fix memcache bugs #1745

merged 1 commit into from
Aug 27, 2023

Conversation

romange
Copy link
Collaborator

@romange romange commented Aug 25, 2023

  1. If the first request sent to the connection is large (2kb or more)
    Dragonfly was closing the connection.
  2. Changed server side error reporting according to memcache protocol:
    https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L172
  3. Fixed the wrong casting in DispatchCommand.

adiholden
adiholden previously approved these changes Aug 27, 2023
@royjacobson
Copy link
Contributor

Could you add a test for the large memcache request case?

1. If the first request sent to the connection is large (2kb or more)
   Dragonfly was closing the connection.
2. Changed server side error reporting according to memcache protocol:
   https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L172
3. Fixed the wrong casting in DispatchCommand.
4. Remove practically unused code that translated opstatus to strings.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
@romange
Copy link
Collaborator Author

romange commented Aug 27, 2023

Could you add a test for the large memcache request case?

PTAL

@romange romange merged commit 6dd51de into main Aug 27, 2023
10 checks passed
@romange romange deleted the FixMC branch August 27, 2023 08:29
kostasrim pushed a commit that referenced this pull request Aug 29, 2023
1. If the first request sent to the connection is large (2kb or more)
   Dragonfly was closing the connection.
2. Changed server side error reporting according to memcache protocol:
   https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L172
3. Fixed the wrong casting in DispatchCommand.
4. Remove practically unused code that translated opstatus to strings.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
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

Successfully merging this pull request may close these issues.

None yet

3 participants