summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2002-09-30 20:51:05 +0000
committerwtc%netscape.com <devnull@localhost>2002-09-30 20:51:05 +0000
commitc3e4844f2365e70855d96e738165b2ae91ac229b (patch)
tree495401281863b1dfc05d4b2f35a45568f92f145e
parent84a98db8edcd29392a1c80042d1ec8d490af6ed2 (diff)
downloadnss-hg-c3e4844f2365e70855d96e738165b2ae91ac229b.tar.gz
Bug 127740: added a comment to explain the thread yield in
ssl3_SendApplicationData.
-rw-r--r--security/nss/lib/ssl/ssl3con.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/security/nss/lib/ssl/ssl3con.c b/security/nss/lib/ssl/ssl3con.c
index af4327c64..126bf5510 100644
--- a/security/nss/lib/ssl/ssl3con.c
+++ b/security/nss/lib/ssl/ssl3con.c
@@ -1544,6 +1544,12 @@ ssl3_SendApplicationData(sslSocket *ss, const unsigned char *in,
PRInt32 count;
if (sent > 0) {
+ /*
+ * The thread yield is intended to give the reader thread a
+ * chance to get some cycles while the writer thread is in
+ * the middle of a large application data write. (See
+ * Bugzilla bug 127740, comment #1.)
+ */
ssl_ReleaseXmitBufLock(ss);
PR_Sleep(PR_INTERVAL_NO_WAIT); /* PR_Yield(); */
ssl_GetXmitBufLock(ss);