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

Unified Diff: net/base/nss_memio.c

Issue 10919167: Increase the sizes of the circular buffers used by SSLClientSocketNSS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Use 17KB receive and read buffers Created 8 years, 3 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
« no previous file with comments | « net/base/nss_memio.h ('k') | net/socket/ssl_client_socket_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/nss_memio.c
===================================================================
--- net/base/nss_memio.c (revision 155503)
+++ net/base/nss_memio.c (working copy)
@@ -350,7 +350,7 @@
/*--------------- public memio functions -----------------------*/
-PRFileDesc *memio_CreateIOLayer(int bufsize)
+PRFileDesc *memio_CreateIOLayer(int readbufsize, int writebufsize)
{
PRFileDesc *fd;
struct PRFilePrivate *secret;
@@ -362,8 +362,8 @@
secret = malloc(sizeof(struct PRFilePrivate));
memset(secret, 0, sizeof(*secret));
- memio_buffer_new(&secret->readbuf, bufsize);
- memio_buffer_new(&secret->writebuf, bufsize);
+ memio_buffer_new(&secret->readbuf, readbufsize);
+ memio_buffer_new(&secret->writebuf, writebufsize);
fd->secret = secret;
return fd;
}
« no previous file with comments | « net/base/nss_memio.h ('k') | net/socket/ssl_client_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698