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

Update multiple PING commands stage in course definition #281

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions course-definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ stages:
$ ./your_program.sh
```

It'll then send two PING commands using the same connection:
It'll then send multiple PING commands using the same connection. For example, it might send:

```bash
$ echo -e "PING\nPING" | redis-cli
```

The tester will expect to receive two `+PONG\r\n` responses.
The tester will expect to receive multiple `+PONG\r\n` responses (one for each command sent).

{{#lang_is_javascript}}
In most languages, you'd need to run a loop that reads input from a connection and sends a
Expand All @@ -251,7 +251,7 @@ stages:

- Just like the previous stage, you can hardcode `+PONG\r\n` as the response for this stage. We'll get to parsing
client input in later stages.
- The two PING commands will be sent using the same connection. We'll get to handling multiple connections in later stages.
- The PING commands will be sent using the same connection. We'll get to handling multiple connections in later stages.
marketing_md: |-
In this stage, you'll respond to multiple
[PING](https://redis.io/commands/ping) commands sent by the same client.
Expand Down
Loading