Ticket #5686: fz-windows-upload-speed.diff

File fz-windows-upload-speed.diff, 944 bytes (added by BJB, 12 years ago)

patch

  • putty/ssh.c

     
    508508
    509509#define SSH1_BUFFER_LIMIT 32768
    510510#define SSH_MAX_BACKLOG 32768
    511 #define OUR_V2_WINSIZE 16384
     511#define OUR_V2_WINSIZE 4194304
    512512#define OUR_V2_BIGWIN 0x7fffffff
    513513#define OUR_V2_MAXPKT 0x4000UL
    514514#define OUR_V2_PACKETLIMIT 0x9000UL
  • putty/windows/winnet.c

     
    883883    int size_read = 4194304;
    884884    p_setsockopt(s, SOL_SOCKET, SO_RCVBUF, (const char*)&size_read, sizeof(size_read));
    885885    }
     886   
     887    /* Enable send window scaling */
     888    {
     889    int size_write = 4194304;
     890    p_setsockopt(s, SOL_SOCKET, SO_SNDBUF, (const char*)&size_write, sizeof(size_write));
     891    }
    886892
    887893    /*
    888894     * Bind to local address.