зеркало из https://github.com/mozilla/gecko-dev.git
Correct the amount returned by ssl_Writev for short writes on non-blocking
sockets. Bug 338325. patch by Chris Newman <chris.newman@sun.com> r=nelson
This commit is contained in:
Родитель
5e3f18a4c6
Коммит
9dc19d4fe0
|
@ -40,7 +40,7 @@
|
|||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
/* $Id: sslsock.c,v 1.47 2006/03/30 21:07:22 rrelyea%redhat.com Exp $ */
|
||||
/* $Id: sslsock.c,v 1.48 2006/05/18 01:10:21 nelson%bolyard.com Exp $ */
|
||||
#include "seccomon.h"
|
||||
#include "cert.h"
|
||||
#include "keyhi.h"
|
||||
|
@ -1677,7 +1677,7 @@ ssl_WriteV(PRFileDesc *fd, const PRIOVec *iov, PRInt32 vectors,
|
|||
} \
|
||||
/* Only a nonblocking socket can have partial sends */ \
|
||||
PR_ASSERT(!blocking); \
|
||||
return sent; \
|
||||
return sent + rv; \
|
||||
}
|
||||
#define SEND(bfr, len) \
|
||||
do { \
|
||||
|
|
Загрузка…
Ссылка в новой задаче