[webkit-reviews] review requested: [Bug 48002] network-simulator.php makes for very slow layout tests : [Attachment 72099] faster network simulator

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 27 15:44:47 PDT 2010


Michael Nordman <michaeln at google.com> has asked  for review:
Bug 48002: network-simulator.php makes for very slow layout tests
https://bugs.webkit.org/show_bug.cgi?id=48002

Attachment 72099: faster network simulator
https://bugs.webkit.org/attachment.cgi?id=72099&action=review

------- Additional Comments from Michael Nordman <michaeln at google.com>
A smaller change to the script that does the trick.

	# Simulate a network error by replying with a non-sense response.
	header('HTTP/1.1 307 Temporary Redirect');
	header('Location: ' . $_SERVER['REQUEST_URI']); # redirect to self
	header('Content-Length: 1');
	header('Content-Length: 5', false); # multiple content-length headers
	echo "Intentionally incorrect response.";


More information about the webkit-reviews mailing list