]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commitdiff
Increase the read buffer size in network processing for extra speed.
authorSimon Tatham <anakin@pobox.com>
Mon, 16 Apr 2001 12:25:03 +0000 (12:25 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 16 Apr 2001 12:25:03 +0000 (12:25 +0000)
git-svn-id: http://svn.tartarus.org/sgt/putty@1047 cda61777-01e9-0310-a592-d414129be87e

winnet.c

index 131f00a7d8790b1b38667fd62655a742c6e2bffa..777c8c378cebf984fac86a57be1b14bc83d78c2b 100644 (file)
--- a/winnet.c
+++ b/winnet.c
@@ -54,7 +54,7 @@
 #include "network.h"
 #include "tree234.h"
 
-#define BUFFER_GRANULE 512
+#define BUFFER_GRANULE  512
 
 struct Socket_tag {
     struct socket_function_table *fn;
@@ -621,7 +621,7 @@ static void sk_tcp_write_oob(Socket sock, char *buf, int len) {
 int select_result(WPARAM wParam, LPARAM lParam) {
     int ret, open;
     DWORD err;
-    char buf[BUFFER_GRANULE];
+    char buf[20480];                  /* nice big buffer for plenty of speed */
     Actual_Socket s;
     u_long atmark;