projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
WebKit
/
LayoutTests
/
http
/
tests
/
websocket
/
cookie-flood_wsh.py
diff --git
a/src/third_party/WebKit/LayoutTests/http/tests/websocket/cookie-flood_wsh.py
b/src/third_party/WebKit/LayoutTests/http/tests/websocket/cookie-flood_wsh.py
index
9007695
..
5cba0bb
100644
(file)
--- a/
src/third_party/WebKit/LayoutTests/http/tests/websocket/cookie-flood_wsh.py
+++ b/
src/third_party/WebKit/LayoutTests/http/tests/websocket/cookie-flood_wsh.py
@@
-31,7
+31,9
@@
from mod_pywebsocket import msgutil
def web_socket_do_extra_handshake(request):
def web_socket_do_extra_handshake(request):
- for i in xrange(10000):
+ # Exact number of headers that will fit in 256KB. Above 256KB an
+ # ERR_RESPONSE_HEADERS_TOO_BIG error is triggered instead.
+ for i in xrange(5978):
request.extra_headers.append(
('Set-Cookie', 'WK-websocket-test-flood-%d=1' % i))
request.extra_headers.append(
('Set-Cookie', 'WK-websocket-test-flood-%d=1' % i))