Mercurial > hg > nginx-tests
comparison h2.t @ 858:75494fb00452
Tests: h2.t TODOs adjusted.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 24 Feb 2016 17:07:51 +0300 |
parents | 47d64d2fd68d |
children | 63babcdd08db |
comparison
equal
deleted
inserted
replaced
857:fcda5bd87ab2 | 858:75494fb00452 |
---|---|
1593 | 1593 |
1594 SKIP: { | 1594 SKIP: { |
1595 skip 'not enough window', 1 if $maxwin < 4; | 1595 skip 'not enough window', 1 if $maxwin < 4; |
1596 | 1596 |
1597 TODO: { | 1597 TODO: { |
1598 todo_skip 'use-after-free', 1 unless $ENV{TEST_NGINX_UNSAFE}; | 1598 todo_skip 'use-after-free', 1 unless $ENV{TEST_NGINX_UNSAFE} |
1599 or $t->has_version('1.9.12'); | |
1599 | 1600 |
1600 $sid = new_stream($sess, { path => '/limit_req', body => 'TEST', split => [61], | 1601 $sid = new_stream($sess, { path => '/limit_req', body => 'TEST', split => [61], |
1601 split_delay => 1.1 }); | 1602 split_delay => 1.1 }); |
1602 $frames = h2_read($sess, all => [{ sid => $sid, fin => 1 }]); | 1603 $frames = h2_read($sess, all => [{ sid => $sid, fin => 1 }]); |
1603 | 1604 |
1619 | 1620 |
1620 SKIP: { | 1621 SKIP: { |
1621 skip 'not enough window', 1 if $maxwin < 4; | 1622 skip 'not enough window', 1 if $maxwin < 4; |
1622 | 1623 |
1623 TODO: { | 1624 TODO: { |
1624 todo_skip 'use-after-free', 1 unless $ENV{TEST_NGINX_UNSAFE}; | 1625 todo_skip 'use-after-free', 1 unless $ENV{TEST_NGINX_UNSAFE} |
1626 or $t->has_version('1.9.12'); | |
1625 | 1627 |
1626 $sess = new_session(); | 1628 $sess = new_session(); |
1627 $sid = new_stream($sess, { path => '/limit_req', body => 'TEST', split => [61], | 1629 $sid = new_stream($sess, { path => '/limit_req', body => 'TEST', split => [61], |
1628 abort => 1 }); | 1630 abort => 1 }); |
1629 $frames = h2_read($sess, all => [{ sid => $sid, fin => 1 }]); | 1631 $frames = h2_read($sess, all => [{ sid => $sid, fin => 1 }]); |
1640 | 1642 |
1641 # partial request header frame received (field split), | 1643 # partial request header frame received (field split), |
1642 # the rest of frame is received after client header timeout | 1644 # the rest of frame is received after client header timeout |
1643 | 1645 |
1644 TODO: { | 1646 TODO: { |
1645 local $TODO = 'not yet'; | 1647 local $TODO = 'not yet' unless $t->has_version('1.9.12'); |
1646 | 1648 |
1647 $sess = new_session(8093); | 1649 $sess = new_session(8093); |
1648 $sid = new_stream($sess, { path => '/t2.html', split => [35], | 1650 $sid = new_stream($sess, { path => '/t2.html', split => [35], |
1649 split_delay => 2.1 }); | 1651 split_delay => 2.1 }); |
1650 $frames = h2_read($sess, all => [{ type => 'RST_STREAM' }]); | 1652 $frames = h2_read($sess, all => [{ type => 'RST_STREAM' }]); |
1662 ok($frame, 'client header timeout - PING'); | 1664 ok($frame, 'client header timeout - PING'); |
1663 | 1665 |
1664 # partial request body data frame received, the rest is after body timeout | 1666 # partial request body data frame received, the rest is after body timeout |
1665 | 1667 |
1666 TODO: { | 1668 TODO: { |
1667 local $TODO = 'not yet'; | 1669 local $TODO = 'not yet' unless $t->has_version('1.9.12'); |
1668 | 1670 |
1669 $sess = new_session(8093); | 1671 $sess = new_session(8093); |
1670 $sid = new_stream($sess, { path => '/proxy/t2.html', body_more => 1 }); | 1672 $sid = new_stream($sess, { path => '/proxy/t2.html', body_more => 1 }); |
1671 h2_body($sess, 'TEST', { split => [10], split_delay => 2.1 }); | 1673 h2_body($sess, 'TEST', { split => [10], split_delay => 2.1 }); |
1672 $frames = h2_read($sess, all => [{ type => 'RST_STREAM' }]); | 1674 $frames = h2_read($sess, all => [{ type => 'RST_STREAM' }]); |