sphinx icon indicating copy to clipboard operation
sphinx copied to clipboard

Parser does not accept messages that terminate with just linefeed character

Open penberg opened this issue 7 years ago • 0 comments

Memcached parser accepts messages that terminate with just a linefeed character (default for nc):

$ nc 127.0.0.1 11211
get foo
END

Sphinx, however, replies with an error result:

$ nc 127.0.0.1 11211
get foo
ERROR

Everything works as expected if I pass the -C command line option to nc to make it terminate lines with CR/LF characters.

Memcached:

$ nc -C 127.0.0.1 11211
get foo
END

Sphinx:

$ nc -C 127.0.0.1 11211
get foo
END

Although Sphinx is implemented as per the Memcached protocol specification, it's worth fixing this (minor) compatibility issue.

penberg avatar Jul 05 '18 09:07 penberg