From 585fb8fcf515ba233db7aa2d192a7eb0935a2f8b Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Mon, 30 Sep 2002 20:51:05 +0000 Subject: [PATCH] Bug 127740: added a comment to explain the thread yield in ssl3_SendApplicationData. --- security/nss/lib/ssl/ssl3con.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/security/nss/lib/ssl/ssl3con.c b/security/nss/lib/ssl/ssl3con.c index 103739d5c5a..c3d5907134c 100644 --- a/security/nss/lib/ssl/ssl3con.c +++ b/security/nss/lib/ssl/ssl3con.c @@ -33,7 +33,7 @@ * may use your version of this file under either the MPL or the * GPL. * - * $Id: ssl3con.c,v 1.41 2002-09-07 01:44:11 jpierre%netscape.com Exp $ + * $Id: ssl3con.c,v 1.42 2002-09-30 20:51:05 wtc%netscape.com Exp $ */ #include "nssrenam.h" @@ -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);