Skip to content

multi: rename the multi transfer states - #6612

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/multi-state-names
Closed

multi: rename the multi transfer states#6612
bagder wants to merge 1 commit into
masterfrom
bagder/multi-state-names

Conversation

@bagder

@bagder bagder commented Feb 16, 2021

Copy link
Copy Markdown
Member

While working on documenting the states it dawned on me that step one is to use better descriptive names on the states. This also changes prefix on them to make them shorter in the source (from CURLM_STATE_ to MSTATE_).

New name old name
INIT INIT
PENDING CONNECT_PEND
CONNECT CONNECT
RESOLVING WAITRESOLVE
CONNECTING WAITCONNECT
TUNNELING WAITPROXYCONNECT
PROTOCONNECT SENDPROTOCONNECT
PROTOCONNECTING PROTOCONNECT
DO DO
DOING DOING
DOING_MORE DO_MORE
DID DO_DONE
PERFORMING PERFORM
RATELIMITING TOOFAST
DONE DONE
COMPLETED COMPLETED
MSGSENT MSGSENT

The general rule is that *ING states will remain in there until a condition is met, while the others are just transitional.

@bagder bagder added the tidy-up label Feb 16, 2021
@bagder

This comment has been minimized.

@bagder

This comment has been minimized.

While working on documenting the states it dawned on me that step one is
to use better descriptive names on the states. This also changes prefix
on them to generally make them shorter in the source.

State names NOT ending with *ing are transitional ones.
@bagder
bagder force-pushed the bagder/multi-state-names branch from a0b45d2 to d12b98d Compare February 16, 2021 10:17
@bagder

bagder commented Feb 16, 2021

Copy link
Copy Markdown
Member Author

Working draft state diagram
curl-transfer-state-machine-v5

@bagder bagder closed this in 94719e7 Feb 16, 2021
@bagder
bagder deleted the bagder/multi-state-names branch February 16, 2021 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant