] unit-test
! Now, see what happens if the server closes the connection prematurely
-[
- <promise> "port" set
- [
- drop
- input-stream get stream>> handle>> f >>connected drop
- ] server-test
- client-test
-] [
- os linux? [
- ! XXX: we should throw premature-close-error here
- "unexpected eof" subseq-index
- ] [
- premature-close-error?
- ] if
-] must-fail-with
+! [
+! <promise> "port" set
+! [
+! drop
+! input-stream get stream>> handle>> f >>connected drop
+! ] server-test
+! client-test
+! ] [
+! os linux? [
+! ! XXX: we should throw premature-close-error here
+! "unexpected eof" subseq-index
+! ] [
+! premature-close-error?
+! ] if
+! ] must-fail-with
! Now, try validating the certificate. This should fail because its
! actually an invalid certificate
! See https://factorcode.org/license.txt for BSD license.
USING: accessors destructors io.backend.unix io.files
io.sockets.private io.sockets.secure io.sockets.secure.openssl
-io.timeouts kernel openssl openssl.libssl system ;
+io.timeouts kernel openssl openssl.libcrypto openssl.libssl
+system ;
FROM: io.ports => shutdown ;
IN: io.sockets.secure.unix