зеркало из https://github.com/github/putty.git
Increase the read buffer size in network processing for extra speed.
[originally from svn r1047]
This commit is contained in:
Родитель
953b7775b3
Коммит
cc100b5676
4
winnet.c
4
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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче