sphinx
sphinx copied to clipboard
Parser does not accept messages that terminate with just linefeed character
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.