This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Empty headers in HTTP/2 streams can cause DoS. A test based on http://hg.nginx.org/nginx-tests . | |
# Takes around 8 seconds without the patch at https://github.com/nginx/nginx/commit/6dfbc8b1c2116f362bb871efebbf9df576738e89 | |
# Start 2019-08-14 1565776248 | |
# End 2019-08-14 1565776256 | |
# https://www.nginx.com/blog/nginx-updates-mitigate-august-2019-http-2-vulnerabilities/ | |
use POSIX qw/strftime/; | |
print "Start ", strftime('%Y-%m-%d %s',localtime), " \n"; | |
$s = Test::Nginx::HTTP2->new(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import random | |
import argparse | |
import sys | |
from io import BytesIO | |
# Referrer: https://github.com/wuyunfeng/Python-FastCGI-Client | |
PY2 = True if sys.version_info.major == 2 else False |