[Net-ssleay-devel] client read failure via inetd
Charles DeRykus
ced at blv-sam-01.ca.boeing.com
Wed Sep 27 21:09:54 UTC 2006
Hello,
I've done extensive searchs but can't find any more
debugging hints/suggestions for a Net::SSLeay simple
echo server running from inetd.
The server log indicates that it receives the client msg,
writes the msg back, and then does a successful shutdown.
However, the client dies silently reading the reply:
[ client code ]
#!/usr/perl-5.8.7/bin/perl
use Socket; # 1.77
use Net::SSLeay qw/die_if_ssl_error/ # 1.30;
# Solaris 5.8/OpenSSL 0.9.6g
...
my $msg = 'This is a test message from the client';
Net::SSLeay::write( $ssl, $msg );
die_if_ssl_error("ssl write");
CORE::shutdown( SOCKET, 1 ); #-- half close: "I've stopped writing"
if ($DEBUG) { print LOG "shutdown complete...\n"; }
my $got = Net::SSLeay::read( $ssl ); #
die_if_ssl_error("ssl cliet read error");
if ($DEBUG) { print LOG "client read complete: $got\n"; )
...
"shutdown complete" is the final msg in the client log.
Any ideas/suggestions appreciated.
Rgds,
--
Charles DeRykus
More information about the Net-ssleay-devel
mailing list