Thread Fehlermeldungen von IO::Socket::SSL beim Schreiben in Socket (19 answers)
Opened by Sascha2018 at 2017-08-19 12:38

Sascha2018
 2017-08-20 17:26
#187268 #187268
User since
2017-08-05
51 Artikel
BenutzerIn
[default_avatar]
Hallo.

Hab jetzt folgendes gemacht:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
   next if $key eq "";
our $bay = $server->accept or next;
$bay->close(SSL_no_shutdown=>1);
my $ip = $bay->peerhost();
my $ident = _uid();
foreach my $key( keys %clients ) {
my $nick = $clients{$key}->{nick};
my $sock = $clients{$key}->{sock};
delete $clients{$key} if !defined $nick or !defined $sock;
print "Verbindung von $nick und dem Socket $sock\n";
}
our $buffer = "";
newclient($bay);
my $dag= getSecretKey();
$bay->sysread($buffer, 1024);
print "$buffer\n\n";
if($buffer =~ /GET \/\?sid=([a-zA-Z0-9]+)\s/) {
if($1) { # if $1
my $session = $1;
my $safesess = $dbh->quote($session);
my $sta = $dbh->prepare("SELECT session FROM Members WHERE session = $safesess LIMIT 1");
$sta->execute();
my $hassession = $sta->fetchrow_array();
$sta->finish();
$dbh->disconnect();
if($hassession) { # Wenn eine Session existiert dann ..
my %user = loadMemberInfo("", $session);
my $showtime= $user{showtime} == 0 ? 0 : 1;
my $nosmiles= $user{nosmileys} == 0 ? 0 : 1;
my $chatzone = $user{chatzone};
$clients{$ident} = {
sock => $bay,
nick => $user{nick},
sockcreated => &Time::HiRes::time(),
ip => $ip,
lastsrvpost => time,
showtime => $showtime,
nosmileys => $nosmiles,
chatzone => $chatzone,
session => $1,
alivetime => time
};
my $rickn = $user{nick};
$loggedin{$rickn}{htmlcon} = 1;
}
}


Und bekomme nun folgende Fehlermeldung und eine weisse Seite:

Code: (dl )
1
2
3
4
5
6
7
DEBUG: .../IO/Socket/SSL.pm:487: no socket yet
DEBUG: .../IO/Socket/SSL.pm:489: accept created normal socket IO::Socket::SSL=GLOB(0x1b59b18)
DEBUG: .../IO/Socket/SSL.pm:505: starting sslifying
DEBUG: .../IO/Socket/SSL.pm:545: Net::SSLeay::accept -> 1
DEBUG: .../IO/Socket/SSL.pm:593: handshake done, socket ready
DEBUG: .../IO/Socket/SSL.pm:493: accept_SSL ok
DEBUG: .../IO/Socket/SSL.pm:1203: Undefined SSL objecterror:00000000:lib(0):func(0):reason(0)


Was habe ich falsch gemacht ???? :-(

lg

View full thread Fehlermeldungen von IO::Socket::SSL beim Schreiben in Socket