Introduce the constrained network server.
The CNS allows files to be served under constrained network conditions per the design doc listed in the bug report. Uses CherryPy to handle HTTP processing. See ./cns.py --help, to run: ./cns.py [--port <port>] [--port-range <port-range>] Requests can then be made to: http://<server ip>:<port>/ServeConstrained?f=<file>&latency=...&bandwidth=...&loss=... The server will allocate a port from the preconfigured range and setup constraints on that port. Subsequent requests for the same constraints from the same source ip will result in the constrained port being reused. BUG=104242 TEST=Ran locally. Ran unittests. Review URL: http://codereview.chromium.org/8528049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110458 0039d316-1c4b-4281-b951-d872f2087c98
Showing
This diff is collapsed.
Please register or sign in to comment