Loading src/ssl.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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); Loading Loading
src/ssl.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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); Loading