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

version» Context lines:

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