Skip to content

rename attempts to retry_attempts#9655

Merged
bneradt merged 1 commit intoapache:masterfrom
lzx404243:attempt-rename
May 1, 2023
Merged

rename attempts to retry_attempts#9655
bneradt merged 1 commit intoapache:masterfrom
lzx404243:attempt-rename

Conversation

@lzx404243
Copy link
Collaborator

From the name, the HttpTransact::_CurrentInfo.attempts seems to represent the total connection attempt, but it's currently really the retry attempt:

  • it's initialized to 0
  • it's incremented only in the OS or parent retry code path

This PR renames this to HttpTransact::_CurrentInfo.retry_attempts to avoid confusion. Note that there is no functionality changes. Changes are to just the naming and some related log messages(plus one assertion).

@bryancall bryancall added this to the 10.0.0 milestone Apr 28, 2023
Copy link
Contributor

@bneradt bneradt left a comment

Choose a reason for hiding this comment

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

Looks good to me. The previous naming has confused people in the past, so thank you for updating this.

I'll let a non-Yahoo person give an official approval.

Copy link
Contributor

@cmcfarlen cmcfarlen left a comment

Choose a reason for hiding this comment

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

Thanks!

@bneradt bneradt merged commit 3594f42 into apache:master May 1, 2023
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jun 3, 2024
* asf/master: (33 commits)
  Add error log for invalid OCSP response (apache#9674)
  Add new settings to specify TLS versions to use (apache#9667)
  Remove flask from tests/Pipfile (apache#9688)
  Doc: Add example of --enable-lto build option with LLVM (apache#9654)
  Added Zhengxi to the asf contributors (apache#9685)
  Don't build native QUIC implementation (apache#9670)
  Stabilize autest tls_hooks17 (apache#9671)
  Cleanup: remove ts::buffer from HostDB. (apache#9677)
  Fix leak in MultiTextMod in ControlBase. (apache#9675)
  Cleanup: remove TsBuffer.h from MIME.cc (apache#9661)
  Cleanup: remove ts::Buffer from ControlBase. (apache#9664)
  setup pre-commit hook at cmake generation time (apache#9669)
  Updated parent retry attempt logic (apache#9620)
  Try to do less work in hot function HttpHookState::getNext (apache#9660)
  cmake build, fixed warning using older openssl APIs (apache#9648)
  rename attempts to retry_attempts (apache#9655)
  OCSP: Fix unitialized variable error. (apache#9662)
  Add support for CONNECT method on HTTP/2 connection (apache#9616)
  Remove deprecated debug output functions from 10 source files. (apache#9657)
  Remove deprecated debug output functions from 14 source files. (apache#9658)
  ...
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.

4 participants