Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(784)

Unified Diff: net/third_party/nss/ssl/ssldef.c

Issue 9764001: Add DTLS support to NSS, contributed by Eric Rescorla. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/third_party/nss/ssl/ssldef.c
===================================================================
--- net/third_party/nss/ssl/ssldef.c (revision 127709)
+++ net/third_party/nss/ssl/ssldef.c (working copy)
@@ -138,6 +138,12 @@
return rv;
}
sent += rv;
+
+ if (IS_DTLS(ss) && (sent < len)) {
+ /* We got a partial write so just return it */
+ return sent;
+ }
+
} while (len > sent);
ss->lastWriteBlocked = 0;
return sent;

Powered by Google App Engine
This is Rietveld 408576698