Extract tunnel setup code, i.e. only CONNECT request handling from nsHttpConnection
Categories
(Core :: Networking: HTTP, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox100 | --- | fixed |
People
(Reporter: dragana, Assigned: dragana)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(2 files, 1 obsolete file)
Currently, this code is an internal part of nsHttpConnection, it can be moved to a separate class with a small interface.
It would be good to add some state machine to nsHttpConnection so that is easier to detect what does the connection does at the moment.
To explore: can we make this a layer under nsHttpConnection?
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
- nsHttpConnection now has states. Currently only proxy setup phase is added to the states.
- The states are used in nsHttpConnection::OnSocketWritable tto make the code more understandable.
- Some pieces of selfcontained code are extracted from nsHttpConnection::OnHeadersAvailable, i.e. HandleTunnelResponse and HandleWebSocketResponse
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
Comment 5•3 years ago
|
||
Backed out 2 changesets (Bug 1754737) for causing failures in nsHttpConnection.cpp CLOSED TREE
Log: https://treeherder.mozilla.org/logviewer?job_id=368773137&repo=autoland&lineNumber=1652
Busted build: https://treeherder.mozilla.org/logviewer?job_id=368774427&repo=autoland&lineNumber=26637
Backout: https://hg.mozilla.org/integration/autoland/rev/1bb40041ed904e71c8d4dea5c97543fcd8d8a566
Assignee | ||
Updated•3 years ago
|
Comment 7•3 years ago
|
||
Backed out 2 changesets (bug 1754737) for causing linux build bustage in netwerk/protocol/http/nsHttpConnection.
Backout link: https://hg.mozilla.org/integration/autoland/rev/d651411ec33c640ea7c0f3e581b829a974aa4a6c
INFO - /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnection.cpp: In member function 'nsresult mozilla::net::nsHttpConnection::CheckTunnelIsNeeded()':
[task 2022-03-23T00:50:07.894Z] 00:50:07 ERROR - /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnection.cpp:2708:1: error: control reaches end of non-void function [-Werror=return-type]
[task 2022-03-23T00:50:07.894Z] 00:50:07 INFO - }
[task 2022-03-23T00:50:07.894Z] 00:50:07 INFO - ^
[task 2022-03-23T00:50:07.895Z] 00:50:07 INFO - /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnection.cpp: In member function 'nsresult mozilla::net::nsHttpConnection::OnSocketReadable()':
[task 2022-03-23T00:50:07.895Z] 00:50:07 WARNING - /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnection.cpp:1977:12: warning: 'rv' may be used uninitialized in this function [-Wmaybe-uninitialized]
[task 2022-03-23T00:50:07.897Z] 00:50:07 INFO - nsresult rv;
[task 2022-03-23T00:50:07.897Z] 00:50:07 INFO - ^~
[task 2022-03-23T00:50:07.898Z] 00:50:07 INFO - cc1plus: all warnings being treated as errors
Comment 10•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0dc7d14597df
https://hg.mozilla.org/mozilla-central/rev/ba3b0e315592
Description
•