Loading src/quic.cpp +4 −3 Changes for src/quic.cpp: 4 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -212,10 +212,11 @@ ssize_t quic::sendPacket(const uint8_t* data, size_t len) { return -1; } // Use sendto directly for child connections (shared socket with peer address), // or send() for connected client sockets. Avoids buffer wrapper overhead. // Use sendto for child connections (shared unconnected parent socket), // send() for everything else (client sockets that called connect()). // FreeBSD returns EISCONN if sendto() is used on a connected socket. ssize_t sent; if (_parent != nullptr || _AddrLen > 0) { if (_parent != nullptr) { sent = ::sendto(_Socket, reinterpret_cast<const char*>(data), len, MSG_DONTWAIT, reinterpret_cast<const sockaddr*>(&_Addr), _AddrLen); } else { Loading Loading
src/quic.cpp +4 −3 Changes for src/quic.cpp: 4 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -212,10 +212,11 @@ ssize_t quic::sendPacket(const uint8_t* data, size_t len) { return -1; } // Use sendto directly for child connections (shared socket with peer address), // or send() for connected client sockets. Avoids buffer wrapper overhead. // Use sendto for child connections (shared unconnected parent socket), // send() for everything else (client sockets that called connect()). // FreeBSD returns EISCONN if sendto() is used on a connected socket. ssize_t sent; if (_parent != nullptr || _AddrLen > 0) { if (_parent != nullptr) { sent = ::sendto(_Socket, reinterpret_cast<const char*>(data), len, MSG_DONTWAIT, reinterpret_cast<const sockaddr*>(&_Addr), _AddrLen); } else { Loading