Skip to content

Releases: hanchiang/codecrafters-redis-rust

Do not write response when connection is closed

08 May 03:19
c786a76
Compare
Choose a tag to compare

Do not write response when connection is closed.
Rename ConnectionError to ConnectionClosed.

What's Changed

  • Rename ConnectionError to ConnectionClosed. Do not write response if … by @hanchiang in #5

Full Changelog: 0.4.0...0.4.1

Add examples, update readme

08 May 03:18
6189165
Compare
Choose a tag to compare

Added examples to run commands in the readme.

What's Changed

Full Changelog: 0.3.0...0.4.0

Integrate new parser which parses redis protocol

04 May 14:26
fd89d41
Compare
Choose a tag to compare

Features

Move reading of stream up from client_input.read_input() to handle_connection_helper().
In handle_connection(), wait for more input if input is incomplete send error response and break out of the loop.
In ParsedCommand, remove num_args_in_input, change args from Option<Vec to Vec.
Added an AppError to handle all the errors that may result from the program.

What's Changed

Full Changelog: 0.2.0...0.3.0

Implement RESP parser

02 May 02:59
9fd0dc9
Compare
Choose a tag to compare

Features

  • Implement RESP parser. Not integrated with the main program.

What's Changed

Full Changelog: 0.0.1...0.2.0

First release

01 May 11:57
Compare
Choose a tag to compare

Features

  • Supported commands: PING, ECHO, GET, SET, SET with expiry
  • 1 thread per connection
  • Parse RESP buffer by transforming it into a string, parsing it into a vector to collect the command and arguments

To do

  • Improve the parsing of RESP input.
  • Better separation of concern: Move respond() out of ClientInput
  • Replace threads with event loop