# failure-truncated_response_only.txt [dustin@lilthing stunnel_test (master)]$ ./test_truncated_response.pl q 2013.02.04 16:20:30 LOG7[9490:140257671452416]: Clients allowed=500 2013.02.04 16:20:30 LOG5[9490:140257671452416]: stunnel 4.54 on x86_64-unknown-linux-gnu platform 2013.02.04 16:20:30 LOG5[9490:140257671452416]: Compiled/running with OpenSSL 1.0.1c 10 May 2012 2013.02.04 16:20:30 LOG5[9490:140257671452416]: Threading:PTHREAD SSL:+ENGINE+OCSP Auth:none Sockets:POLL+IPv6 2013.02.04 16:20:30 LOG5[9490:140257671452416]: Reading configuration from file /tmp/stunnel.conf-SyQ1Pv 2013.02.04 16:20:30 LOG7[9490:140257671452416]: Compression not enabled 2013.02.04 16:20:30 LOG7[9490:140257671452416]: Snagged 64 random bytes from /home/dustin/.rnd 2013.02.04 16:20:30 LOG7[9490:140257671452416]: Wrote 1024 new random bytes to /home/dustin/.rnd 2013.02.04 16:20:30 LOG7[9490:140257671452416]: PRNG seeded successfully 2013.02.04 16:20:30 LOG6[9490:140257671452416]: Initializing service [127.0.0.1] 2013.02.04 16:20:30 LOG7[9490:140257671452416]: Certificate: /home/dustin/src/stunnel_test/snakeoil.pem 2013.02.04 16:20:30 LOG7[9490:140257671452416]: Certificate loaded 2013.02.04 16:20:30 LOG7[9490:140257671452416]: Key file: /home/dustin/src/stunnel_test/snakeoil.pem 2013.02.04 16:20:30 LOG7[9490:140257671452416]: Private key loaded 2013.02.04 16:20:30 LOG7[9490:140257671452416]: Could not load DH parameters from /home/dustin/src/stunnel_test/snakeoil.pem 2013.02.04 16:20:30 LOG7[9490:140257671452416]: Using hardcoded DH parameters 2013.02.04 16:20:30 LOG7[9490:140257671452416]: DH initialized with 2048-bit key 2013.02.04 16:20:30 LOG7[9490:140257671452416]: ECDH initialized with curve prime256v1 2013.02.04 16:20:30 LOG7[9490:140257671452416]: SSL options set: 0x01400004 2013.02.04 16:20:30 LOG5[9490:140257671452416]: Configuration successful 2013.02.04 16:20:30 LOG7[9490:140257671452416]: Service [127.0.0.1] (FD=7) bound to 127.0.0.1:4443 2013.02.04 16:20:30 LOG7[9490:140257671452416]: Created pid file /tmp/PIgTvMCbGo.pid 2013.02.04 16:20:31 LOG7[9490:140257671452416]: Service [127.0.0.1] accepted (FD=3) from 127.0.0.1:53695 2013.02.04 16:20:31 LOG7[9490:140257671583488]: Service [127.0.0.1] started 2013.02.04 16:20:31 LOG5[9490:140257671583488]: Service [127.0.0.1] accepted connection from 127.0.0.1:53695 2013.02.04 16:20:31 LOG6[9490:140257671583488]: connect_blocking: connecting localhost:/tmp/30WftvWzoe.sock 2013.02.04 16:20:31 LOG5[9490:140257671583488]: connect_blocking: connected localhost:/tmp/30WftvWzoe.sock 2013.02.04 16:20:31 LOG5[9490:140257671583488]: Service [127.0.0.1] connected remote server from unnamed socket 2013.02.04 16:20:31 LOG7[9490:140257671583488]: Remote socket (FD=8) initialized 2013.02.04 16:20:31 LOG7[9490:140257671583488]: Option TCP_NODELAY not supported on remote socket 2013.02.04 16:20:31 LOG6[9490:140257671583488]: Server-mode proxy protocol negotiations started 2013.02.04 16:20:31 LOG7[9490:140257671583488]: -> PROXY TCP4 127.0.0.1 127.0.0.1 53695 4443 2013.02.04 16:20:31 LOG6[9490:140257671583488]: Server-mode proxy protocol negotiations succeeded 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL state (accept): before/accept initialization 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL state (accept): SSLv3 read client hello A 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL state (accept): SSLv3 write server hello A 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL state (accept): SSLv3 write certificate A 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL state (accept): SSLv3 write key exchange A 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL state (accept): SSLv3 write server done A 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL state (accept): SSLv3 flush data 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL state (accept): SSLv3 read client key exchange A 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL state (accept): SSLv3 read finished A 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL state (accept): SSLv3 write change cipher spec A 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL state (accept): SSLv3 write finished A 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL state (accept): SSLv3 flush data 2013.02.04 16:20:31 LOG7[9490:140257671583488]: 1 items in the session cache 2013.02.04 16:20:31 LOG7[9490:140257671583488]: 0 client connects (SSL_connect()) 2013.02.04 16:20:31 LOG7[9490:140257671583488]: 0 client connects that finished 2013.02.04 16:20:31 LOG7[9490:140257671583488]: 0 client renegotiations requested 2013.02.04 16:20:31 LOG7[9490:140257671583488]: 1 server connects (SSL_accept()) 2013.02.04 16:20:31 LOG7[9490:140257671583488]: 1 server connects that finished 2013.02.04 16:20:31 LOG7[9490:140257671583488]: 0 server renegotiations requested 2013.02.04 16:20:31 LOG7[9490:140257671583488]: 0 session cache hits 2013.02.04 16:20:31 LOG7[9490:140257671583488]: 0 external session cache hits 2013.02.04 16:20:31 LOG7[9490:140257671583488]: 0 session cache misses 2013.02.04 16:20:31 LOG7[9490:140257671583488]: 0 session cache timeouts 2013.02.04 16:20:31 LOG6[9490:140257671583488]: SSL accepted: new session negotiated 2013.02.04 16:20:31 LOG6[9490:140257671583488]: Negotiated TLSv1/SSLv3 ciphersuite: ECDHE-RSA-RC4-SHA (128-bit encryption) 2013.02.04 16:20:31 LOG6[9490:140257671583488]: Compression: null, expansion: null 2013.02.04 16:20:31 LOG7[9490:140257671583488]: Socket closed on read 2013.02.04 16:20:31 LOG7[9490:140257671583488]: Sending close_notify alert 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL alert (write): warning: close notify 2013.02.04 16:20:31 LOG6[9490:140257671583488]: SSL_shutdown successfully sent close_notify alert 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL alert (read): warning: close notify 2013.02.04 16:20:31 LOG7[9490:140257671583488]: SSL closed on SSL_read 2013.02.04 16:20:31 LOG7[9490:140257671583488]: Sent socket write shutdown 2013.02.04 16:20:31 LOG5[9490:140257671583488]: Connection closed: 46693 byte(s) sent to SSL, 78 byte(s) sent to socket 2013.02.04 16:20:31 LOG7[9490:140257671583488]: Remote socket (FD=8) closed 2013.02.04 16:20:31 LOG7[9490:140257671583488]: Local socket (FD=3) closed 2013.02.04 16:20:31 LOG7[9490:140257671583488]: Service [127.0.0.1] finished (0 left) curl exited with 4608 Cleaning up ... 2013.02.04 16:20:32 LOG7[9490:140257671452416]: Dispatching signals from the signal pipe 2013.02.04 16:20:32 LOG7[9490:140257671452416]: Processing SIGNAL_TERMINATE 2013.02.04 16:20:32 LOG5[9490:140257671452416]: Terminated 2013.02.04 16:20:32 LOG7[9490:140257671452416]: Closing service [127.0.0.1] 2013.02.04 16:20:32 LOG7[9490:140257671452416]: Service [127.0.0.1] closed (FD=7) 2013.02.04 16:20:32 LOG7[9490:140257671452416]: Sessions cached before flush: 1 2013.02.04 16:20:32 LOG7[9490:140257671452416]: Sessions cached after flush: 0 2013.02.04 16:20:32 LOG7[9490:140257671452416]: Service [127.0.0.1] closed 2013.02.04 16:20:32 LOG7[9490:140257671452416]: str_stats: 12 block(s), 1069 data byte(s), 696 control byte(s) 2013.02.04 16:20:32 LOG7[9490:140257671452416]: removing pid file /tmp/PIgTvMCbGo.pid