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

test

parent 4222a8b2
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -117,7 +117,9 @@ namespace netplus {
            // If r==0 for your stack means "no data yet" on nonblocking sockets, retry.
            // If it means EOF, throw. During handshake, retry briefly is usually okay.
            if (r == 0) {
                continue;
                NetException e;
                e[NetException::Note] << "need more data";
                throw e;
            }

            std::memcpy(dst + got, tmp.data.buf, r);
@@ -190,7 +192,9 @@ namespace netplus {
            }

            if (r == 0) {
                continue;
                NetException e;
                e[NetException::Note] << "need more data";
                throw e;
            }

            std::memcpy(dst + got, b.data.buf, r);