Commit c12ae6bb authored by jan.koester's avatar jan.koester
Browse files

test

parent 0d341967
Loading
Loading
Loading
Loading
+1 −1
Changes for src/event/epoll.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ namespace netplus {
                // clt->connection->csock=std::make_unique<ssl>( -1);
            }

            if (!ccon->csock || ccon->csock->fd() < 0) {
            if (!ccon->csock) {
                 // The connection failed to establish or the socket is invalid.
                 // Clean up and return, perhaps log an error.
                 char errstr[255];
+7 −7
Changes for src/event/kqueue.cpp: 7 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -176,12 +176,12 @@ namespace netplus {

            evconnection->CreateConnection(ccon);

            // if(!ccon){
            //     char errstr[255];
            //     strerror_r_netplus(errno,errstr,255);
            //     std::cerr << "ConnectEventHandler: Failed to accept connection or invalid socket: " << errstr << std::endl;
            //     return;
            // }
            if(!ccon){
                char errstr[255];
                strerror_r_netplus(errno,errstr,255);
                std::cerr << "ConnectEventHandler: Failed to accept connection or invalid socket: " << errstr << std::endl;
                return;
            }

            if(_ServerSocket->_Type==sockettype::TCP){
                ccon->csock=std::make_unique<tcp>(-1);
@@ -191,7 +191,7 @@ namespace netplus {
                // clt->connection->csock=std::make_unique<ssl>( -1);
            }

            if (!ccon->csock || ccon->csock->fd() < 0) {
            if (!ccon->csock) {
                 // The connection failed to establish or the socket is invalid.
                 // Clean up and return, perhaps log an error.
                 char errstr[255];