Commit 4f1d8ad7 authored by jan.koester's avatar jan.koester
Browse files

test

parent e724b779
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -256,13 +256,15 @@ namespace netplus {
                        rcon->lasteventime = time(nullptr);
                        evconnection->RequestEvent(*rcon, tid, args);
                        break;
                    } else { // rcv == 0
                        if (rcon->csock->_Type == sockettype::TCP) {
                            throw NetException() << "Client closed TCP connection";
                        }
                    else {

                        if (!rcon->csock->getHandshakeDone()) {
                            continue;
                        } else {
                            // Handshake ist fertig und wir lesen 0? -> Verbindung zu.
                            throw NetException() << "Client closed connection";
                            throw NetException() << "Client closed SSL connection";
                        }
                    }
                }