Loading src/event/epoll.cpp +4 −1 Changes for src/event/epoll.cpp: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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 Loading src/event/kqueue.cpp +4 −2 Changes for src/event/kqueue.cpp: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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 Loading Loading
src/event/epoll.cpp +4 −1 Changes for src/event/epoll.cpp: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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 Loading
src/event/kqueue.cpp +4 −2 Changes for src/event/kqueue.cpp: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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 Loading