projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increase the read buffer size in network processing for extra speed.
[u/mdw/putty]
/
winnet.c
diff --git
a/winnet.c
b/winnet.c
index
131f00a
..
777c8c3
100644
(file)
--- a/
winnet.c
+++ b/
winnet.c
@@
-54,7
+54,7
@@
#include "network.h"
#include "tree234.h"
#include "network.h"
#include "tree234.h"
-#define BUFFER_GRANULE 512
+#define BUFFER_GRANULE
512
struct Socket_tag {
struct socket_function_table *fn;
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;
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;
Actual_Socket s;
u_long atmark;