Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 30, 2026

Addresses review feedback from #10207 regarding Can_process_multiple_large_requests_arriving_in_chunks() test. The test sends multiple newline-delimited JSON-RPC requests but used RpcEndpoint.Http, which breaks after the first result (per Startup.cs:296).

Changes

  • Changed test to use RpcEndpoint.Ws to match WebSocket transport semantics that support multiple requests per connection

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

Documentation

Requires documentation update

  • Yes
  • No

Requires explanation in Release Notes

  • Yes
  • No

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: LukaszRozmej <12445221+LukaszRozmej@users.noreply.github.com>
Copilot AI changed the title [WIP] Update handling of incoming JSONs in chunks Fix test endpoint to match transport semantics for multiple JSON requests Jan 30, 2026
Copilot AI requested a review from LukaszRozmej January 30, 2026 10:50
@LukaszRozmej LukaszRozmej marked this pull request as ready for review January 30, 2026 11:21
@LukaszRozmej LukaszRozmej merged commit 86a8537 into feature/parse_json_in_chunks Jan 30, 2026
130 of 132 checks passed
@LukaszRozmej LukaszRozmej deleted the copilot/sub-pr-10207 branch January 30, 2026 11:21
LukaszRozmej added a commit that referenced this pull request Feb 1, 2026
* Parse incoming Jsons in chunks

* changes

* better error handling

* move start time

* dispose jsondocument on exception

* fix microseconds

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix copilot review

* whitespace

* fix TrimStart

* Guard ReadAsync

* fix

* Fix test endpoint to match transport semantics for multiple JSON requests (#10356)

* Initial plan

* Change test endpoint from Http to Ws for multiple requests test

Co-authored-by: LukaszRozmej <12445221+LukaszRozmej@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: LukaszRozmej <12445221+LukaszRozmej@users.noreply.github.com>

* Update src/Nethermind/Nethermind.JsonRpc/JsonRpcProcessor.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fixes

* more fixes

* Update src/Nethermind/Nethermind.JsonRpc.Test/JsonRpcProcessorTests.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* make http endpoint AllowMultipleValues = false

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Ben {chmark} Adams <thundercat@illyriad.co.uk>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: LukaszRozmej <12445221+LukaszRozmej@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants