Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Conversation

@maxmoehl
Copy link
Member

@maxmoehl maxmoehl commented Nov 13, 2023

  • A short explanation of the proposed change: Only call close on the original requests body if it is non-nil, otherwise this will cause a panic.

  • An explanation of the use cases your change solves: Prevent panics.

  • Instructions to functionally test the behavior change using operator interfaces (BOSH manifest, logs, curl, and metrics)

  • Expected result after the change: No panic if we have a client request without a body and the client disconnects early.

  • Current result before the change: gorouter panics if we have a client request without a body and the client disconnects early.

  • Links to any other associated PRs: Fix memory leak when connections are prematurely closed on the client… #333

  • I have viewed signed and have submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests.

  • (Optional) I have run Routing Acceptance Tests and Routing Smoke Tests

  • (Optional) I have run CF Acceptance Tests

@maxmoehl
Copy link
Member Author

I'll try to come up with a regression test for this.

@maxmoehl maxmoehl marked this pull request as ready for review December 7, 2023 09:16
@maxmoehl maxmoehl requested a review from a team as a code owner December 7, 2023 09:16
@domdom82 domdom82 merged commit 24447aa into cloudfoundry:main Dec 7, 2023
@maxmoehl maxmoehl deleted the fix-nil-panic branch December 7, 2023 10:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants