Bug 127740: added a comment to explain the thread yield in

ssl3_SendApplicationData.
This commit is contained in:
wtc%netscape.com 2002-09-30 20:51:05 +00:00
Родитель ca4da40f13
Коммит d7b153e145
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -33,7 +33,7 @@
* may use your version of this file under either the MPL or the * may use your version of this file under either the MPL or the
* GPL. * 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" #include "nssrenam.h"
@ -1544,6 +1544,12 @@ ssl3_SendApplicationData(sslSocket *ss, const unsigned char *in,
PRInt32 count; PRInt32 count;
if (sent > 0) { 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); ssl_ReleaseXmitBufLock(ss);
PR_Sleep(PR_INTERVAL_NO_WAIT); /* PR_Yield(); */ PR_Sleep(PR_INTERVAL_NO_WAIT); /* PR_Yield(); */
ssl_GetXmitBufLock(ss); ssl_GetXmitBufLock(ss);