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

test

parent c6b64918
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -2427,6 +2427,18 @@ namespace netplus {
            throw n;
        }

        // Flush any pending outbound TLS records before reading.
        // If sendData() partially flushed (non-blocking EAGAIN), the peer
        // may never have received our request — drain it now.
        if (hasPendingWrite()) {
            try {
                flush_out();
            } catch (NetException& e) {
                if (e.getErrorType() != NetException::Note)
                    throw;
            }
        }


        // ============================================================
        // 1) deliver leftover plaintext (partial read from last record)