Commit 6bc0ab6c authored by Jan Köster's avatar Jan Köster
Browse files

test

parent bed7d983
Loading
Loading
Loading
Loading
+4 −1
Changes for src/event/epoll.cpp: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -227,7 +227,10 @@ namespace netplus {
                    ccon->slots[0].csock = std::make_unique<tcp>(-1);
                else if (_ServerSocket->_Type == sockettype::SSL) {
                    ssl* srv = static_cast<ssl*>(_ServerSocket);
                    ccon->slots[0].csock = std::make_unique<ssl>(*srv->_tls.cert_map, -1);
                    // Share cert_map by pointer — ssl::accept() below replaces this
                    // placeholder wholesale anyway, so avoid deep-copying the whole
                    // certificate map (incl. RSA/EC key material) on every connect.
                    ccon->slots[0].csock = std::make_unique<ssl>(srv->_tls.cert_map);
                } else if (_ServerSocket->_Type == sockettype::QUIC) {
                    // QUIC: accept() drains up to 512 queued datagrams in
                    // one call (see quic::accept). The listener fd is
+4 −2
Changes for src/event/kqueue.cpp: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -359,8 +359,10 @@ namespace netplus {
                    ccon->slots[0].csock = std::make_unique<tcp>(-1);
                else if (_ServerSocket->_Type == sockettype::SSL) {
                    ssl* srv = static_cast<ssl*>(_ServerSocket);
                    // Pass the certificate bundle map (SNI will select appropriate cert per connection)
                    ccon->slots[0].csock = std::make_unique<ssl>(*srv->_tls.cert_map, -1);
                    // Share cert_map by pointer — ssl::accept() below replaces this
                    // placeholder wholesale anyway, so avoid deep-copying the whole
                    // certificate map (incl. RSA/EC key material) on every connect.
                    ccon->slots[0].csock = std::make_unique<ssl>(srv->_tls.cert_map);
                } else if (_ServerSocket->_Type == sockettype::QUIC) {
                    // QUIC: All child connections share the parent's UDP socket.
                    // accept() receives packets and either routes to existing children