comparison lib/Test/Nginx/HTTP2.pm @ 932:f9ab0aa6e14e

Tests: simple ssl_verify_client tests.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 23 May 2016 13:58:34 +0300
parents 2668f30181eb
children b1fa8e0cc27b
comparison
equal deleted inserted replaced
931:bf86f9ad0c23 932:f9ab0aa6e14e
437 } 437 }
438 438
439 sub new_session { 439 sub new_session {
440 my ($port, %extra) = @_; 440 my ($port, %extra) = @_;
441 441
442 my $s = new_socket($port, %extra); 442 my $s = $extra{socket} || new_socket($port, %extra);
443 my $preface = $extra{preface} 443 my $preface = $extra{preface}
444 || 'PRI * HTTP/2.0' . CRLF . CRLF . 'SM' . CRLF . CRLF; 444 || 'PRI * HTTP/2.0' . CRLF . CRLF . 'SM' . CRLF . CRLF;
445 445
446 if ($extra{proxy}) { 446 if ($extra{proxy}) {
447 raw_write($s, $extra{proxy}); 447 raw_write($s, $extra{proxy});