mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 12:03:03 -05:00
Increase the read buffer size in network processing for extra speed.
[originally from svn r1047]
This commit is contained in:
parent
953b7775b3
commit
cc100b5676
4
winnet.c
4
winnet.c
@ -54,7 +54,7 @@
|
|||||||
#include "network.h"
|
#include "network.h"
|
||||||
#include "tree234.h"
|
#include "tree234.h"
|
||||||
|
|
||||||
#define BUFFER_GRANULE 512
|
#define BUFFER_GRANULE 512
|
||||||
|
|
||||||
struct Socket_tag {
|
struct Socket_tag {
|
||||||
struct socket_function_table *fn;
|
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 select_result(WPARAM wParam, LPARAM lParam) {
|
||||||
int ret, open;
|
int ret, open;
|
||||||
DWORD err;
|
DWORD err;
|
||||||
char buf[BUFFER_GRANULE];
|
char buf[20480]; /* nice big buffer for plenty of speed */
|
||||||
Actual_Socket s;
|
Actual_Socket s;
|
||||||
u_long atmark;
|
u_long atmark;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user