Open Bug 1755518 Opened 3 years ago Updated 2 years ago

nsHttpConnection state machine

Categories

(Core :: Networking: HTTP, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: dragana, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

  1. Bug 1754737 did the first step and added states to nsHttpConnection. it is:
    • UNINITIALIZED,
    • SETTING_UP_TUNNEL,
    • TUNNEL_DONE,
    • TUNNEL_NOT_USED
      This can be extended to :
    • UNINITIALIZED,
    • TLS_FOR_TUNNEL,
    • SETTING_UP_TUNNEL,
    • TLS_TO_ORIGIN,
    • EARLY_DATA,
    • FINAL_REQUEST
      We do not need separate TUNNEL_DONE and TUNNEL_NOT_USED, we can use the HttpConnectionInfo to find out whether a proxy was used.
  2. There s some code that is H2-only and some that are HTTP<2-only. We should try to split this into 2 sub-structures, helper classes, to make the code more readable.
Blocks: 1772115
No longer blocks: necko-proxy
Type: task → enhancement
Summary: Add more structure to nsHttpConnection → nsHttpConnection state machine
Assignee: nobody → dd.mozilla
Status: NEW → ASSIGNED
Attached file Add more state to nsHttpConnection (deleted) —

I will not have time to work on this bug, so I am unassigning myself.

Assignee: dd.mozilla → nobody
Status: ASSIGNED → NEW

Valentin, please take a look at the patch if you want to finish it or just abandon it. Thank you.

Flags: needinfo?(valentin.gosu)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: