# failure-truncated_response_and_transfer_loop_not_transferring.txt [dustin@lilthing stunnel_test]$ ./test_truncated_response.pl 2013.02.04 16:16:45 LOG7[9097:140657847547648]: Clients allowed=500 2013.02.04 16:16:45 LOG5[9097:140657847547648]: stunnel 4.54 on x86_64-unknown-linux-gnu platform 2013.02.04 16:16:45 LOG5[9097:140657847547648]: Compiled/running with OpenSSL 1.0.1c 10 May 2012 2013.02.04 16:16:45 LOG5[9097:140657847547648]: Threading:PTHREAD SSL:+ENGINE+OCSP Auth:none Sockets:POLL+IPv6 2013.02.04 16:16:45 LOG5[9097:140657847547648]: Reading configuration from file /tmp/stunnel.conf-ML5VqX 2013.02.04 16:16:45 LOG7[9097:140657847547648]: Compression not enabled 2013.02.04 16:16:45 LOG7[9097:140657847547648]: Snagged 64 random bytes from /home/dustin/.rnd 2013.02.04 16:16:45 LOG7[9097:140657847547648]: Wrote 1024 new random bytes to /home/dustin/.rnd 2013.02.04 16:16:45 LOG7[9097:140657847547648]: PRNG seeded successfully 2013.02.04 16:16:45 LOG6[9097:140657847547648]: Initializing service [127.0.0.1] 2013.02.04 16:16:45 LOG7[9097:140657847547648]: Certificate: /home/dustin/src/stunnel_test/snakeoil.pem 2013.02.04 16:16:45 LOG7[9097:140657847547648]: Certificate loaded 2013.02.04 16:16:45 LOG7[9097:140657847547648]: Key file: /home/dustin/src/stunnel_test/snakeoil.pem 2013.02.04 16:16:45 LOG7[9097:140657847547648]: Private key loaded 2013.02.04 16:16:45 LOG7[9097:140657847547648]: Could not load DH parameters from /home/dustin/src/stunnel_test/snakeoil.pem 2013.02.04 16:16:45 LOG7[9097:140657847547648]: Using hardcoded DH parameters 2013.02.04 16:16:45 LOG7[9097:140657847547648]: DH initialized with 2048-bit key 2013.02.04 16:16:45 LOG7[9097:140657847547648]: ECDH initialized with curve prime256v1 2013.02.04 16:16:45 LOG7[9097:140657847547648]: SSL options set: 0x01400004 2013.02.04 16:16:45 LOG5[9097:140657847547648]: Configuration successful 2013.02.04 16:16:45 LOG7[9097:140657847547648]: Service [127.0.0.1] (FD=7) bound to 127.0.0.1:4443 2013.02.04 16:16:45 LOG7[9097:140657847547648]: Created pid file /tmp/fldctGzcQA.pid 2013.02.04 16:16:46 LOG7[9097:140657847547648]: Service [127.0.0.1] accepted (FD=3) from 127.0.0.1:53670 2013.02.04 16:16:46 LOG7[9097:140657847678720]: Service [127.0.0.1] started 2013.02.04 16:16:46 LOG5[9097:140657847678720]: Service [127.0.0.1] accepted connection from 127.0.0.1:53670 2013.02.04 16:16:46 LOG6[9097:140657847678720]: connect_blocking: connecting localhost:/tmp/uH7sHKe5cs.sock 2013.02.04 16:16:46 LOG5[9097:140657847678720]: connect_blocking: connected localhost:/tmp/uH7sHKe5cs.sock 2013.02.04 16:16:46 LOG5[9097:140657847678720]: Service [127.0.0.1] connected remote server from unnamed socket 2013.02.04 16:16:46 LOG7[9097:140657847678720]: Remote socket (FD=8) initialized 2013.02.04 16:16:46 LOG7[9097:140657847678720]: Option TCP_NODELAY not supported on remote socket 2013.02.04 16:16:46 LOG6[9097:140657847678720]: Server-mode proxy protocol negotiations started 2013.02.04 16:16:46 LOG7[9097:140657847678720]: -> PROXY TCP4 127.0.0.1 127.0.0.1 53670 4443 2013.02.04 16:16:46 LOG6[9097:140657847678720]: Server-mode proxy protocol negotiations succeeded 2013.02.04 16:16:46 LOG7[9097:140657847678720]: SSL state (accept): before/accept initialization 2013.02.04 16:16:46 LOG7[9097:140657847678720]: SSL state (accept): SSLv3 read client hello A 2013.02.04 16:16:46 LOG7[9097:140657847678720]: SSL state (accept): SSLv3 write server hello A 2013.02.04 16:16:46 LOG7[9097:140657847678720]: SSL state (accept): SSLv3 write certificate A 2013.02.04 16:16:46 LOG7[9097:140657847678720]: SSL state (accept): SSLv3 write key exchange A 2013.02.04 16:16:46 LOG7[9097:140657847678720]: SSL state (accept): SSLv3 write server done A 2013.02.04 16:16:46 LOG7[9097:140657847678720]: SSL state (accept): SSLv3 flush data 2013.02.04 16:16:46 LOG7[9097:140657847678720]: SSL state (accept): SSLv3 read client key exchange A 2013.02.04 16:16:46 LOG7[9097:140657847678720]: SSL state (accept): SSLv3 read finished A 2013.02.04 16:16:46 LOG7[9097:140657847678720]: SSL state (accept): SSLv3 write change cipher spec A 2013.02.04 16:16:46 LOG7[9097:140657847678720]: SSL state (accept): SSLv3 write finished A 2013.02.04 16:16:46 LOG7[9097:140657847678720]: SSL state (accept): SSLv3 flush data 2013.02.04 16:16:46 LOG7[9097:140657847678720]: 1 items in the session cache 2013.02.04 16:16:46 LOG7[9097:140657847678720]: 0 client connects (SSL_connect()) 2013.02.04 16:16:46 LOG7[9097:140657847678720]: 0 client connects that finished 2013.02.04 16:16:46 LOG7[9097:140657847678720]: 0 client renegotiations requested 2013.02.04 16:16:46 LOG7[9097:140657847678720]: 1 server connects (SSL_accept()) 2013.02.04 16:16:46 LOG7[9097:140657847678720]: 1 server connects that finished 2013.02.04 16:16:46 LOG7[9097:140657847678720]: 0 server renegotiations requested 2013.02.04 16:16:46 LOG7[9097:140657847678720]: 0 session cache hits 2013.02.04 16:16:46 LOG7[9097:140657847678720]: 0 external session cache hits 2013.02.04 16:16:46 LOG7[9097:140657847678720]: 0 session cache misses 2013.02.04 16:16:46 LOG7[9097:140657847678720]: 0 session cache timeouts 2013.02.04 16:16:46 LOG6[9097:140657847678720]: SSL accepted: new session negotiated 2013.02.04 16:16:46 LOG6[9097:140657847678720]: Negotiated TLSv1/SSLv3 ciphersuite: ECDHE-RSA-RC4-SHA (128-bit encryption) 2013.02.04 16:16:46 LOG6[9097:140657847678720]: Compression: null, expansion: null 2013.02.04 16:16:46 LOG7[9097:140657847678720]: Socket closed on read 2013.02.04 16:16:46 LOG7[9097:140657847678720]: Sending close_notify alert 2013.02.04 16:16:46 LOG7[9097:140657847678720]: SSL alert (write): warning: close notify 2013.02.04 16:16:46 LOG6[9097:140657847678720]: SSL_shutdown successfully sent close_notify alert 2013.02.04 16:16:46 LOG3[9097:140657847678720]: transfer() loop executes not transferring any data 2013.02.04 16:16:46 LOG3[9097:140657847678720]: please report the problem to Michal.Trojnara@mirt.net 2013.02.04 16:16:46 LOG3[9097:140657847678720]: stunnel 4.54 on x86_64-unknown-linux-gnu platform 2013.02.04 16:16:46 LOG3[9097:140657847678720]: Compiled/running with OpenSSL 1.0.1c 10 May 2012 2013.02.04 16:16:46 LOG3[9097:140657847678720]: Threading:PTHREAD SSL:+ENGINE+OCSP Auth:none Sockets:POLL+IPv6 2013.02.04 16:16:46 LOG3[9097:140657847678720]: protocol=TLSv1.2, SSL_pending=0 2013.02.04 16:16:46 LOG3[9097:140657847678720]: sock_open_rd=n, sock_open_wr=Y 2013.02.04 16:16:46 LOG3[9097:140657847678720]: SSL_RECEIVED_SHUTDOWN=n, SSL_SENT_SHUTDOWN=Y 2013.02.04 16:16:46 LOG3[9097:140657847678720]: sock_can_rd=Y, sock_can_wr=n 2013.02.04 16:16:46 LOG3[9097:140657847678720]: ssl_can_rd=n, ssl_can_wr=n 2013.02.04 16:16:46 LOG3[9097:140657847678720]: read_wants_read=Y, read_wants_write=n 2013.02.04 16:16:46 LOG3[9097:140657847678720]: write_wants_read=n, write_wants_write=n 2013.02.04 16:16:46 LOG3[9097:140657847678720]: shutdown_wants_read=n, shutdown_wants_write=n 2013.02.04 16:16:46 LOG3[9097:140657847678720]: socket input buffer: 0 byte(s), ssl input buffer: 0 byte(s) 2013.02.04 16:16:46 LOG5[9097:140657847678720]: Connection reset: 46693 byte(s) sent to SSL, 78 byte(s) sent to socket curl exited with 4608 2013.02.04 16:16:46 LOG7[9097:140657847678720]: Remote socket (FD=8) closed 2013.02.04 16:16:46 LOG7[9097:140657847678720]: Local socket (FD=3) closed 2013.02.04 16:16:46 LOG7[9097:140657847678720]: Service [127.0.0.1] finished (0 left)