pike.git / src / modules / _Stdio / async_tls_close_test.pike

version» Context lines:

pike.git/src/modules/_Stdio/async_tls_close_test.pike:14:    int block = argv[2] == "1";       Pike.Backend blocked_backend = Pike.Backend();    Stdio.Port blocked_server = Stdio.Port();    blocked_server->set_backend (blocked_backend);    blocked_server->bind (36565, lambda () {    fail = "Should never accept a connection.\n";    });       Stdio.File con = Stdio.File(); -  SSL.sslfile tlscon; +  SSL.File tlscon;    con->async_connect (    "127.0.0.1", 36565,    lambda (int success) {    if (success) { -  tlscon = SSL.sslfile (con, SSL.Context()); +  tlscon = SSL.File (con, SSL.Context());    tlscon->connect("localhost");    tlscon->set_write_callback (lambda () {    fail = "Handshake should not succeed.\n";    });    }    else    fail = "Failed to connect.";    });       call_out (