Skip to content

Conversation

@0x416e746f6e
Copy link
Contributor

we need to prepare for implementation of FCUs deduplication (this avalanche problem still persists).

that will require assembly of incoming requests before the decision whether to proxy them or not is made => and for that we will need buffers + reasonable limits.

we need to prepare for implementation of FCUs deduplication
(this avalanche problem still persists).

that will require assembly of incoming requests before the decision
whether to proxy them or not is made => and for that we will need
buffers + reasonable limits.
@0x416e746f6e 0x416e746f6e self-assigned this Oct 23, 2025

let bck_req = this.backend.new_backend_request(&info);
let bck_req_body = ProxyHttpRequestBody::new(this.clone(), info, cli_req_body, timestamp);
let bck_req_body = ProxyHttpRequestBody::new(
Copy link
Contributor

Choose a reason for hiding this comment

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

wdyt about using full name?
i could read this as:
block_req_body
backend_req_body

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed:

  • bck => bknd
  • cli => clnt

Copy link
Contributor

Choose a reason for hiding this comment

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

What do these shortenings add? It's more straightforward to use full names for these sorts of variables

Copy link
Contributor Author

Choose a reason for hiding this comment

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

they make it easier for me to see more code on a single screen of my laptop.

rust is extremely verbose language, especially with autoformatting rules applied.

if let Some(info) = mem::take(this.info) {
warn!(
proxy = P::name(),
request_id = %info.id(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean to include connection id here too or was not including it intentional? I don't understand why you need to repeat this code instead of defining a function or something

Copy link
Contributor Author

@0x416e746f6e 0x416e746f6e Oct 23, 2025

Choose a reason for hiding this comment

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

yes, I did mean to include it. just overlooked it. thanks for pointing out

Copy link
Contributor Author

Choose a reason for hiding this comment

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

re. function: maybe some day that will happen. I don't want to optimise things prematurely. once the code stabilised we can think about it

Base automatically changed from chore/drop-proxyinner-trait to main October 23, 2025 18:10
Copy link
Contributor Author

@0x416e746f6e 0x416e746f6e left a comment

Choose a reason for hiding this comment

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

responded

if let Some(info) = mem::take(this.info) {
warn!(
proxy = P::name(),
request_id = %info.id(),
Copy link
Contributor Author

@0x416e746f6e 0x416e746f6e Oct 23, 2025

Choose a reason for hiding this comment

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

yes, I did mean to include it. just overlooked it. thanks for pointing out

if let Some(info) = mem::take(this.info) {
warn!(
proxy = P::name(),
request_id = %info.id(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

re. function: maybe some day that will happen. I don't want to optimise things prematurely. once the code stabilised we can think about it


let bck_req = this.backend.new_backend_request(&info);
let bck_req_body = ProxyHttpRequestBody::new(this.clone(), info, cli_req_body, timestamp);
let bck_req_body = ProxyHttpRequestBody::new(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed:

  • bck => bknd
  • cli => clnt

@0x416e746f6e 0x416e746f6e merged commit 19859e3 into main Oct 27, 2025
@0x416e746f6e 0x416e746f6e deleted the feat/preallocate-and-max-buffer-sizes branch October 27, 2025 19:14
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.

3 participants