Skip to content

Conversation

leynos
Copy link
Owner

@leynos leynos commented Jun 18, 2025

Summary

  • decode frames in handle_connection
  • deserialize an Envelope
  • execute handler if a route exists
  • send a response using send_response

Testing

  • cargo clippy -- -D warnings
  • RUSTFLAGS="-D warnings" cargo test

https://chatgpt.com/codex/tasks/task_e_6852d86d03bc83229328f6b1d3da20f3

Summary by Sourcery

Implement full connection handling by adding a streaming loop that decodes frames into Envelope messages, dispatches to registered handlers based on message ID, and sends responses using the existing serializer.

New Features:

  • Define Envelope struct for message framing and routing.
  • Implement connection handling with frame decoding, deserialization, handler dispatch, and response sending.

Enhancements:

  • Add process_stream, read_into, and handle_frame methods to manage stream I/O and message processing.

Tests:

  • Update on_connection_teardown callback signature in lifecycle tests to accept a unit parameter.

Summary by CodeRabbit

  • New Features
    • Implemented functional message processing for incoming connections, including reading, decoding, handling messages, and sending responses.
  • Bug Fixes
    • Improved connection handling to prevent immediate disconnection and ensure proper message flow.
  • Documentation
    • Updated example code to reflect new handler signatures accepting message envelopes.
  • Other
    • Enhanced logging for deserialisation and I/O errors during connection processing.
    • Clarified connection teardown callback parameter in lifecycle tests.

Copy link
Contributor

sourcery-ai bot commented Jun 18, 2025

Reviewer's Guide

This PR implements a full connection handling pipeline in handle_connection by introducing an Envelope type, refactoring handle_connection to call new processing methods, and adding process_stream, read_into, and handle_frame to continuously read, decode, route, and respond to incoming frames with proper logging and timeouts.

Sequence diagram for the new connection handling pipeline

sequenceDiagram
    participant Client
    participant WireframeApp
    participant Handler
    Client->>WireframeApp: Send frame
    WireframeApp->>WireframeApp: process_stream()
    WireframeApp->>WireframeApp: decode(frame)
    WireframeApp->>WireframeApp: deserialize Envelope
    alt Handler exists
        WireframeApp->>Handler: handler().await
        Handler-->>WireframeApp: (response)
    else No handler
        WireframeApp->>WireframeApp: log warning
    end
    WireframeApp->>WireframeApp: send_response()
    WireframeApp-->>Client: Send response
Loading

Class diagram for Envelope and connection handling methods

classDiagram
    class Envelope {
        +u32 id
        +Vec<u8> msg
    }
    class WireframeApp {
        +handle_connection(stream)
        +process_stream(stream)
        +read_into(stream, buf)
        +handle_frame(stream, frame)
        +send_response(stream, env)
        +routes: HashMap<u32, Handler>
        +serializer
        +frame_processor
    }
    WireframeApp --> Envelope : deserializes
    WireframeApp --> Handler : executes
    WireframeApp --> send_response : calls
Loading

File-Level Changes

Change Details Files
Introduce Envelope struct to wrap message ID and payload
  • Defined Envelope struct with id and msg fields
  • Derived bincode::Encode and Decode
  • Added documentation comment
src/app.rs
Refactor handle_connection to delegate to process_stream
  • Changed handle_connection signature to accept mutable stream
  • Replaced placeholder warning with process_stream invocation
  • Logged connection termination errors
src/app.rs
Implement stream processing pipeline for incoming frames
  • Added process_stream to decode and handle frames in a loop
  • Introduced read_into with read timeout for buffered reads
  • Added handle_frame for deserialization, routing, handler execution, response sending, and error logging
src/app.rs
Adjust on_connection_teardown callback signature in lifecycle test
  • Updated closure signature from
_

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

coderabbitai bot commented Jun 18, 2025

## Walkthrough

The connection handling logic in the application has been updated from a placeholder to a functional implementation. The `handle_connection` method now processes incoming streams, decodes frames, dispatches messages to handlers, sends responses, and manages connection teardown, all within an asynchronous processing loop.

## Changes

| File(s)           | Change Summary                                                                                                   |
|-------------------|------------------------------------------------------------------------------------------------------------------|
| src/app.rs        | Replaced placeholder connection handler with an async processing loop: reads, decodes, dispatches, and responds. Updated method signature and added private async methods for stream processing, frame handling, and reading with timeout. Added `Envelope` struct and updated `Service` type alias. Introduced `MAX_IDLE_POLLS` constant. |
| tests/lifecycle.rs | Modified `on_connection_teardown` callback closure parameter from ignored to explicit empty tuple in a test.      |
| docs/roadmap.md    | Updated example code to reflect new handler signature accepting an `Envelope` reference and corresponding routing closure changes. |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant Client
    participant App
    participant FrameProcessor
    participant Handler

    Client->>App: Open connection (stream)
    loop While stream open
        App->>FrameProcessor: Read & decode frame
        FrameProcessor-->>App: Decoded Envelope (msg_id, payload)
        App->>Handler: Lookup & execute handler for msg_id
        Handler-->>App: Handler response
        App->>Client: Send response envelope
    end
    App->>App: Invoke teardown callback (if any)

Possibly related PRs

Poem

In the warren of code, a new stream flows,
No longer ignored, the connection now grows.
Messages hop in, each handled with care,
Replies bounce back through digital air.
When all is complete and the stream says goodbye,
A rabbit logs off with a satisfied sigh.
🐇💻


<!-- walkthrough_end -->


---

<details>
<summary>📜 Recent review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: ASSERTIVE**
**Plan: Pro**


<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 2aa568fab2cdc262bb2daede864281ea4ded733b and e2e3f2b800bfbc30bf4116c822be045bcae6544a.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `src/app.rs` (6 hunks)

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (1)</summary>

* GitHub Check: build-test

</details>

<details>
<summary>🔇 Additional comments (10)</summary><blockquote>

<details>
<summary>src/app.rs (10)</summary>

`1-6`: **Module documentation properly added.**

The module-level documentation has been added to address the previous review requirement. The description accurately reflects the module's purpose.

---

`41-41`: **Service signature correctly updated to accept message payload.**

The Service type now accepts `&Envelope` parameter, which addresses the previous concern about handlers not having access to the message payload.

---

`84-92`: **Envelope struct definition looks appropriate.**

The Envelope struct with bincode derives provides a clean abstraction for message framing. The structure is simple and fit for purpose.

---

`94-97`: **Constants provide reasonable limits for connection management.**

The MAX_IDLE_POLLS and MAX_DESER_FAILURES constants establish sensible boundaries for connection lifecycle management and error tolerance.

---

`289-306`: **Connection lifecycle properly implemented.**

The handle_connection method now properly manages the full connection lifecycle with setup, processing, and teardown phases.

---

`308-330`: **Main processing loop is well-structured.**

The process_stream method implements a clean event loop with proper frame decoding, handling, and idle management.

---

`332-355`: **Robust read handling with proper state management.**

The read_and_update method provides comprehensive error handling and state tracking for connection reads.

---

`357-372`: **Error classification enhances connection resilience.**

The is_transient_error and is_fatal_error functions provide proper error categorisation for connection management decisions.

---

`374-390`: **Timeout-based reading prevents blocking operations.**

The read_into method with 100ms timeout provides a balanced approach to non-blocking reads whilst avoiding overly aggressive timeouts.

---

`414-423`: **Deserialization failure handling significantly improved.**

The addition of a failure counter with MAX_DESER_FAILURES limit addresses the previous concern about unbounded deserialization failures. The approach properly terminates connections after repeated failures whilst logging individual errors.

</details>

</blockquote></details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNwSPbABsvkCiQBHbGlcSHFcLzpIACIASWZuSLYMUKYMcjF4f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zXX8Clmii3X5MQl5qdqqAGhdlaM62gXeAWFOv1P1QtLodxFmmTQcibG32zEdrIjrG2EbiZGHDZAeGNryQuHqDr0mz9WGAsmLQ1CAq83Nsu2RBgifWfghmAdgJ7BUdnznr7TczLxtFawxjdlMMUZ5r0QIAHR23QCMfzp7EluWTTxpB2OBHuH8DEF8Q0lcQKF8i5o/oNHV2e0pF33bL8jrz0U7rEAoOs2JH8kkUKEj1YzdmFg+ARN3QYfEZTzKItWnsXFnrUfntEAaKXuaOJAXB3naJhU3u6PEBZpdP6Vfv0OGBXuafXtaZTvafkAXsqdmCwJ8SGF2Cia/vRSCg9WMcUNAe6mYA5ukTYRvrxqPsMAMAFXjmEZASpQfttWlT8DQDlUcGfqVVgS5TVV5X5RJWOXUE4kjFVCeXMRVB2iGQec1SgAlLQAAE4XtlSAB2EgQF38DoAAFgYAAFZlSxSLQ0AXtTIBBQWJTaAXs2gBA4W0BlS4WJSAA2NAfF+kIlfZkgN7BgIlgQMUvF2gMUkFl7CU9F5Ul7UFxF0FtAUQIl6F6F6lwF0FsU8qIl9luF+gClp5gFtAOFsV+XAQCUhgWgBgYl1lxV0yOgEgZUvliU9lj8aFv8YVsUvsqViAHqCUkgMUjoVl5Uj7AQDoAQBgMUt7B16Fl7F7IlhgZUiU1lql6FuFp1nloluF/lykDVfZ7RF53ZBiNZOgXynsfQIAA=== -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings
<details open="true">
<summary>🧪 Generate Unit Tests</summary>

- [ ] <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-2987399487"} -->   Create PR with Unit Tests
- [ ] <!-- {"checkboxId": "07f1e7d6-8a8e-4e23-9900-8731c2c87f58", "radioGroupId": "utg-output-choice-group-2987399487"} -->   Post Copyable Unit Tests in Comment
- [ ] <!-- {"checkboxId": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "radioGroupId": "utg-output-choice-group-2987399487"} -->   Commit Unit Tests in branch `codex/extend-handle_connection-to-process-frames`

</details>

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---



<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=leynos/wireframe&utm_content=76):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Explain this complex logic.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai explain this code block.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and explain its main purpose.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai auto-generate unit tests` to generate unit tests for this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates Failed
Prevent hotspot decline (1 hotspot with Deep, Nested Complexity)
Enforce critical code health rules (1 file with Deep, Nested Complexity)

Gates Passed
3 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Prevent hotspot decline Violations Code Health Impact
app.rs 1 rule in this hotspot 10.00 → 9.39 Suppress
Enforce critical code health rules Violations Code Health Impact
app.rs 1 critical rule 10.00 → 9.39 Suppress

Quality Gate Profile: Pay Down Tech Debt
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @leynos - I've reviewed your changes - here's some feedback:

  • The route handler closure is invoked without passing in the deserialized payload (env.msg); consider updating the handler signature to accept the message contents.
  • The read loop uses a hard-coded 10 ms timeout before breaking, which could lead to busy loops; consider making this configurable or relying on async readiness notifications instead.
  • Using warn! for expected conditions (like missing handlers or deserialization failures) may spam logs; consider lowering these to info! or debug! levels instead.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The route handler closure is invoked without passing in the deserialized payload (`env.msg`); consider updating the handler signature to accept the message contents.
- The read loop uses a hard-coded 10 ms timeout before breaking, which could lead to busy loops; consider making this configurable or relying on async readiness notifications instead.
- Using `warn!` for expected conditions (like missing handlers or deserialization failures) may spam logs; consider lowering these to `info!` or `debug!` levels instead.

## Individual Comments

### Comment 1
<location> `src/app.rs:293` </location>
<code_context>
         }
     }
+
+    async fn process_stream<W>(&self, stream: &mut W) -> io::Result<()>
+    where
+        W: tokio::io::AsyncRead + tokio::io::AsyncWrite + Unpin,
</code_context>

<issue_to_address>
The module is missing a containing item comment (`//!`).

Please add a module-level doc comment at the top of the file using `//!` to describe the purpose of this module.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🔭 Outside diff range comments (1)
src/app.rs (1)

274-290: Sequential handler execution may throttle throughput

handler().await runs in-line, so a slow handler blocks further frame processing for the same connection. Consider spawning each handler on a dedicated task (e.g. tokio::spawn) or using buffered channels to decouple I/O from business logic.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3f43136 and 2a9187e.

📒 Files selected for processing (1)
  • src/app.rs (3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: build-test
  • GitHub Check: Analyze (actions)

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates Failed
Prevent hotspot decline (1 hotspot with Deep, Nested Complexity)
Enforce critical code health rules (1 file with Deep, Nested Complexity)

Gates Passed
3 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Prevent hotspot decline Violations Code Health Impact
app.rs 1 rule in this hotspot 10.00 → 9.39 Suppress
Enforce critical code health rules Violations Code Health Impact
app.rs 1 critical rule 10.00 → 9.39 Suppress

Quality Gate Profile: Pay Down Tech Debt
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.

@leynos
Copy link
Owner Author

leynos commented Jun 18, 2025

@sourcery-ai review

@leynos
Copy link
Owner Author

leynos commented Jun 18, 2025

@coderabbitai review

Copy link
Contributor

coderabbitai bot commented Jun 18, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @leynos - I've reviewed your changes - here's some feedback:

  • Defining Envelope inside process_stream duplicates your message type each time—consider extracting it to a shared module so the serializer can reuse a single type.
  • Using a fixed 10 ms timeout before each read_buf may spin under low traffic—consider awaiting read_buf directly or using a backoff to reduce CPU usage.
  • You currently invoke handlers as handler().await without passing the deserialized env.msg payload—update your route APIs to accept the message content so handlers can process it.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Defining `Envelope` inside `process_stream` duplicates your message type each time—consider extracting it to a shared module so the serializer can reuse a single type.
- Using a fixed 10 ms timeout before each `read_buf` may spin under low traffic—consider awaiting `read_buf` directly or using a backoff to reduce CPU usage.
- You currently invoke handlers as `handler().await` without passing the deserialized `env.msg` payload—update your route APIs to accept the message content so handlers can process it.

## Individual Comments

### Comment 1
<location> `src/app.rs:293` </location>
<code_context>
         }
     }
+
+    async fn process_stream<W>(&self, stream: &mut W) -> io::Result<()>
+    where
+        W: tokio::io::AsyncRead + tokio::io::AsyncWrite + Unpin,
</code_context>

<issue_to_address>
The module is missing a containing item comment (`//!`).

Please add a module-level doc comment at the top of the file using `//!` to describe the purpose of this module.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @leynos - I've reviewed your changes - here's some feedback:

  • Consider externalizing the Envelope struct to a shared module instead of defining it inside process_stream to ensure consistent serialization across the codebase.
  • The timeout on read_buf currently breaks out of the loop on any idle period—treating timeouts as continue (instead of break) will prevent the connection from closing prematurely when no data arrives for a short while.
  • You’re discarding the deserialized payload when invoking handlers (handler().await); consider changing the handler signature to accept env.msg so each route can process the actual message content.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider externalizing the Envelope struct to a shared module instead of defining it inside process_stream to ensure consistent serialization across the codebase.
- The timeout on read_buf currently breaks out of the loop on any idle period—treating timeouts as continue (instead of break) will prevent the connection from closing prematurely when no data arrives for a short while.
- You’re discarding the deserialized payload when invoking handlers (handler().await); consider changing the handler signature to accept env.msg so each route can process the actual message content.

## Individual Comments

### Comment 1
<location> `src/app.rs:293` </location>
<code_context>
         }
     }
+
+    async fn process_stream<W>(&self, stream: &mut W) -> io::Result<()>
+    where
+        W: tokio::io::AsyncRead + tokio::io::AsyncWrite + Unpin,
</code_context>

<issue_to_address>
The module is missing a containing item comment (`//!`).

Please add a module-level doc comment at the top of the file using `//!` to describe the purpose of this module.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @leynos - I've reviewed your changes - here's some feedback:

  • The 10 ms timeout in process_stream will break out on any idle period—consider using a longer (or configurable) timeout or looping until EOF to avoid premature disconnects.
  • You’re redefining the Envelope struct with bincode derives inside process_stream on every call—move it (and its derives) to a shared module-level type for reuse and clarity.
  • Handlers are currently invoked as handler().await and never receive the deserialized payload—consider passing env.msg (or a parsed type) into the handler so it can actually process the message.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The 10 ms timeout in process_stream will break out on any idle period—consider using a longer (or configurable) timeout or looping until EOF to avoid premature disconnects.
- You’re redefining the Envelope struct with bincode derives inside process_stream on every call—move it (and its derives) to a shared module-level type for reuse and clarity.
- Handlers are currently invoked as handler().await and never receive the deserialized payload—consider passing `env.msg` (or a parsed type) into the handler so it can actually process the message.

## Individual Comments

### Comment 1
<location> `src/app.rs:293` </location>
<code_context>
         }
     }
+
+    async fn process_stream<W>(&self, stream: &mut W) -> io::Result<()>
+    where
+        W: tokio::io::AsyncRead + tokio::io::AsyncWrite + Unpin,
</code_context>

<issue_to_address>
The module is missing a containing item comment (`//!`).

Please add a module-level doc comment at the top of the file using `//!` to describe the purpose of this module.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@leynos
Copy link
Owner Author

leynos commented Jun 19, 2025

@sourcery-ai resolve

@leynos
Copy link
Owner Author

leynos commented Jun 19, 2025

@coderabbitai resolve

Copy link
Contributor

coderabbitai bot commented Jun 19, 2025

✅ Actions performed

Comments resolved and changes approved.

@leynos
Copy link
Owner Author

leynos commented Jun 19, 2025

@sourcery-ai review

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @leynos - I've reviewed your changes - here's some feedback:

  • The current read_into implementation treats a 100 ms timeout as EOF and breaks the loop, which will close idle connections prematurely—consider looping on timeouts instead of exiting.
  • handle_frame always calls send_response even when there’s no handler or deserialization fails; you should make sending a response conditional or return an explicit error frame.
  • Route handlers are invoked without access to the deserialized payload (env.msg); consider passing the message bytes or a parsed struct into the handler for actual message processing.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The current read_into implementation treats a 100 ms timeout as EOF and breaks the loop, which will close idle connections prematurely—consider looping on timeouts instead of exiting.
- handle_frame always calls send_response even when there’s no handler or deserialization fails; you should make sending a response conditional or return an explicit error frame.
- Route handlers are invoked without access to the deserialized payload (`env.msg`); consider passing the message bytes or a parsed struct into the handler for actual message processing.

## Individual Comments

### Comment 1
<location> `src/app.rs:341` </location>
<code_context>
+    where
+        W: tokio::io::AsyncWrite + Unpin,
+    {
+        match self.serializer.deserialize::<Envelope>(frame) {
+            Ok((env, _)) => {
+                if let Some(handler) = self.routes.get(&env.id) {
+                    handler().await;
+                } else {
+                    log::warn!("no handler for message id {}", env.id);
+                }
+
+                let _ = self.send_response(stream, &env).await;
+            }
+            Err(e) => log::warn!("failed to deserialize message: {e}"),
+        }
+
</code_context>

<issue_to_address>
Deserialization errors are only logged, not surfaced.

Since errors are only logged, repeated malformed frames could be exploited or cause resource issues. Consider adding a limit on deserialization errors or closing the connection after multiple failures.
</issue_to_address>

### Comment 2
<location> `src/app.rs:88` </location>
<code_context>
+///
+/// Incoming frames are deserialized into an `Envelope` containing the
+/// message identifier and raw payload bytes.
+#[derive(bincode::Decode, bincode::Encode)]
+struct Envelope {
+    id: u32,
</code_context>

<issue_to_address>
The module is missing a containing item comment (`//!`).

Please add a `//!` comment at the top of the module to describe its purpose, as required by the review instructions.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @leynos - I've reviewed your changes and they look great!

Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments

### Comment 1
<location> `src/app.rs:88` </location>
<code_context>
+///
+/// Incoming frames are deserialized into an `Envelope` containing the
+/// message identifier and raw payload bytes.
+#[derive(bincode::Decode, bincode::Encode)]
+struct Envelope {
+    id: u32,
</code_context>

<issue_to_address>
The module is missing a containing item comment (`//!`).

Please add a module-level doc comment at the top of the file using `//!` to describe the purpose of this module, as required by the review instructions.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @leynos - I've reviewed your changes - here's some feedback:

  • In read_into, a timeout is treated as EOF and breaks the loop, which will close connections on short idle periods—consider distinguishing between an actual EOF and a temporary timeout to keep idle connections alive.
  • The current handler lookup only allows zero-argument closures and ignores the payload; consider updating your routes to pass the deserialized message into the handler so handlers can operate on the Envelope content.
  • Errors from send_response are silently dropped; it would be more robust to at least log failures when sending a response instead of ignoring them.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In read_into, a timeout is treated as EOF and breaks the loop, which will close connections on short idle periods—consider distinguishing between an actual EOF and a temporary timeout to keep idle connections alive.
- The current handler lookup only allows zero-argument closures and ignores the payload; consider updating your routes to pass the deserialized message into the handler so handlers can operate on the Envelope content.
- Errors from send_response are silently dropped; it would be more robust to at least log failures when sending a response instead of ignoring them.

## Individual Comments

### Comment 1
<location> `src/app.rs:88` </location>
<code_context>
+///
+/// Incoming frames are deserialized into an `Envelope` containing the
+/// message identifier and raw payload bytes.
+#[derive(bincode::Decode, bincode::Encode)]
+struct Envelope {
+    id: u32,
</code_context>

<issue_to_address>
The module is missing a containing item comment (`//!`).

Please add a `//!` comment at the top of the module to describe its purpose, as required by the review instructions.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates Failed
Prevent hotspot decline (1 hotspot with Bumpy Road Ahead)
Enforce critical code health rules (1 file with Bumpy Road Ahead)

Gates Passed
3 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Prevent hotspot decline Violations Code Health Impact
app.rs 1 rule in this hotspot 10.00 → 9.84 Suppress
Enforce critical code health rules Violations Code Health Impact
app.rs 1 critical rule 10.00 → 9.84 Suppress

Quality Gate Profile: Pay Down Tech Debt
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.

@leynos
Copy link
Owner Author

leynos commented Jun 19, 2025

@sourcery-ai resolve

@leynos
Copy link
Owner Author

leynos commented Jun 19, 2025

@coderabbitai review

Copy link
Contributor

coderabbitai bot commented Jun 19, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (3)
src/app.rs (3)

352-372: Critical compilation error in response sending

Line 364 attempts to send &env (type &Envelope) via send_response, but Envelope doesn't implement the Message trait required by the method signature.

Either implement Message for Envelope or modify the response logic:

-if let Err(e) = self.send_response(stream, &env).await {
-    log::warn!("failed to send response: {e}");
-}
+// Option 1: Echo the original frame back
+if let Err(e) = stream.write_all(frame).await {
+    log::warn!("failed to echo response: {e}");
+}

84-93: Envelope struct missing Message trait implementation

The Envelope struct is used in send_response (line 364) but doesn't implement the required Message trait, causing a compilation error.

Implement the Message trait for Envelope:

+use crate::message::Message;

+impl Message for Envelope {}

#[derive(bincode::Decode, bincode::Encode)]
pub struct Envelope {
    id: u32,
    msg: Vec<u8>,
}

368-368: Consider limiting deserialization failures

Repeated deserialization errors are only logged, which could be exploited or cause resource issues. Consider implementing a failure threshold that closes the connection after multiple consecutive failures.

+let mut deser_failures = 0u32;
+const MAX_DESER_FAILURES: u32 = 10;

match self.serializer.deserialize::<Envelope>(frame) {
    Ok((env, _)) => {
+       deser_failures = 0;
        // ... existing handler logic
    }
-   Err(e) => log::warn!("failed to deserialize message: {e}"),
+   Err(e) => {
+       deser_failures += 1;
+       log::warn!("failed to deserialize message: {e}");
+       if deser_failures >= MAX_DESER_FAILURES {
+           return Err(io::Error::new(io::ErrorKind::InvalidData, "too many deserialization failures"));
+       }
+   }
}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e0c6b35 and 2aa568f.

📒 Files selected for processing (2)
  • docs/roadmap.md (1 hunks)
  • src/app.rs (6 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build-test
🔇 Additional comments (7)
src/app.rs (5)

3-5: Well-documented module purpose

The comprehensive module documentation clearly describes the WireframeApp builder and its role in managing connection state, routing, and middleware. This addresses the previous review feedback about missing module-level documentation.


41-41: Handler signature correctly updated to receive message payload

The Service type now accepts &Envelope parameter, ensuring handlers can access the deserialized message content. This resolves the previous issue where the message payload never reached the handler.


94-96: Reasonable idle timeout duration

The 5-second timeout (50 polls × 100ms) is much more appropriate than the previous 10ms timeout, allowing for normal connection idle periods without premature termination.


287-304: Robust connection lifecycle management

The connection handling now properly implements setup, processing, and teardown phases with error handling, replacing the previous placeholder implementation.


334-350: Well-implemented timeout-based reading

The read_into method properly distinguishes between successful reads, I/O errors, and timeouts, providing the foundation for graceful idle connection handling.

docs/roadmap.md (2)

42-43: Documentation updated to match new handler signature

The example correctly imports Envelope and updates the handler function to accept the &Envelope parameter, maintaining consistency with the implementation changes in src/app.rs.


50-50: Route closure properly passes envelope parameter

The route registration correctly passes the env argument to the handler, demonstrating the updated Service signature where handlers receive the deserialized message envelope.

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates Failed
Prevent hotspot decline (1 hotspot with Bumpy Road Ahead)
Enforce critical code health rules (1 file with Bumpy Road Ahead)

Gates Passed
3 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Prevent hotspot decline Violations Code Health Impact
app.rs 1 rule in this hotspot 10.00 → 9.84 Suppress
Enforce critical code health rules Violations Code Health Impact
app.rs 1 critical rule 10.00 → 9.84 Suppress

Quality Gate Profile: Pay Down Tech Debt
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.

@leynos
Copy link
Owner Author

leynos commented Jun 19, 2025

@coderabbitai review

Copy link
Contributor

coderabbitai bot commented Jun 19, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant