[Webkit-unassigned] [Bug 48002] network-simulator.php makes for very slow layout tests

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 20 14:21:46 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=48002





--- Comment #5 from Michael Nordman <michaeln at google.com>  2010-10-20 14:21:47 PST ---
> Another approach could be to simulate a 'network error' could be with a malformed http message, maybe an excessively large header? I'll see if php lets me form a malformed header? It'd be nice if php let me produce the output w/o doing anything 'for me' in this case.

Ah ha... at least the instance of php i'm running here let's me produce arbitrarily large headers!

        # Simulate a network error with an excessively large response header.
        $largeString = "";
        for ($x = 0; $x < 10000; $x++)
            $largeString .= "abcdefghijklmonpqrstuvwxyz0123456789";
        header('HTTP/1.1 200 OK');
        header('X-WayTooBig: ' . $largeString);

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list