Proxy testing: Testing connection to origin servers via a proxy
Categories
(Core :: Networking: HTTP, task, P3)
Tracking
()
People
(Reporter: dragana, Assigned: dragana)
References
(Blocks 1 open bug, Regressed 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(6 files, 1 obsolete file)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
- An HTTP request with responses: 200, 404.
- An HTTP request with a redirect
- 2 HTTP requests to the same origin over an HTTP/2 proxy.
Check that the proxy connection is reused. - 2 HTTP requests to the same origin over an HTTP/2 proxy. One of the requests uses the anonymous flag.
Check that the proxy connection is not reused. - 2 HTTP requests to the same origin over an HTTP/2 proxy with a different triggering principal.
Check that the proxy connection is not reused. - A connection to the proxy fails with a non-authentication failure. (test at least 2 HTTP requests).
- Test a long post and check progress notifications as well.
- Test a post with a slower writer.
- Test a long response.
- Test a slove response reader.
- Test canceling an HTTP request:
- as soon as the nsHttpChannel is open and a connection to the proxy does not exist already,
- as soon as the nsHttpChannel is open and a connection to the proxy exists (only HTTP/2 proxy),
- after the request is sent but before the response is received
- while receiving a response.
For the above tests check that the HTTP/2 connection to the proxy is not closed.
- Network connection breaks with different errors in different stages of a request and proxy setup.
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Also AltSvc is disabled for HTTP proxies - addapt the test.
Assignee | ||
Comment 3•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Comment 4•2 years ago
•
|
||
The following tests should be covered with currently submitted patches or already existing tests:
- [x] An HTTP request with responses: 200, 404.
- [ ] An HTTP request with a redirect
- [x] 2 HTTP requests to the same origin over an HTTP/2 proxy.
Check that the proxy connection is reused. - [x] 2 HTTP requests to the same origin over an HTTP/2 proxy. One of the requests uses the anonymous flag.
Check that the proxy connection is not reused. - [x] 2 HTTP requests to the same origin over an HTTP/2 proxy with a different triggering principal.
Check that the proxy connection is not reused. - [x] A connection to the proxy fails with a non-authentication failure. (test at least 2 HTTP requests).
- [partially, only for HTTP2 server] Test a long post and check progress notifications as well.
- [ ] Test a post with a slower writer.
- [x] Test a long response.
- [x] Test a slove response reader.
- [ ] Test canceling an HTTP request:
- as soon as the nsHttpChannel is open and a connection to the proxy does not exist already,
- as soon as the nsHttpChannel is open and a connection to the proxy exists (only HTTP/2 proxy),
- after the request is sent but before the response is received
- while receiving a response.
For the above tests check that the HTTP/2 connection to the proxy is not closed.
- [ ] Network connection breaks with different errors in different stages of a request and proxy setup.
Comment 5•2 years ago
|
||
The patch also changes test_server.js to await server shutdown when necessary.
Comment 6•2 years ago
|
||
Comment 7•2 years ago
|
||
We move from http.get to http.request to be able to pass the method to
the proxied request.
We alsoread the data from the stream and pipe it to the new request.
Depends on D155334
Updated•2 years ago
|
Updated•2 years ago
|
Comment 9•2 years ago
|
||
bugherder |
Comment 10•2 years ago
|
||
Comment 11•2 years ago
|
||
Comment 12•2 years ago
|
||
Backed out changeset 60fc8d3f8152 (Bug 1755660) for causing failures in test_proxy_cancel.js CLOSED TREE
Log: https://treeherder.mozilla.org/logviewer?job_id=390546772&repo=autoland&lineNumber=4245
Backout: https://hg.mozilla.org/integration/autoland/rev/5910daede0a2de60e2c851b73122934e1e13fc16
Comment 13•2 years ago
|
||
Comment 14•2 years ago
|
||
bugherder |
Assignee | ||
Comment 15•2 years ago
|
||
Hi Kershaw, my appolgies but may I ask you to land 2 patches from me? I will not have time to fix them. Thank you
Updated•2 years ago
|
Comment 16•2 years ago
|
||
Comment 17•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Updated•2 years ago
|
Comment 18•2 years ago
|
||
Comment 19•2 years ago
|
||
bugherder |
Comment 20•2 years ago
|
||
I assume we can close this now?
Comment 21•2 years ago
|
||
Yes, all tests are landed.
Description
•