SSL needs quite a lot of spare memory
authorMichael Brown <mcb30@etherboot.org>
Thu, 1 Feb 2007 09:38:16 +0000 (09:38 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 1 Feb 2007 09:38:16 +0000 (09:38 +0000)
src/net/tcp.c

index 056c3e3..96cac77 100644 (file)
@@ -288,7 +288,7 @@ static int tcp_senddata_conn ( struct tcp_connection *tcp, int force_send ) {
                start_timer ( &tcp->timer );
 
        /* Estimate window size */
-       window = freemem;
+       window = ( ( freemem * 3 ) / 4 );
        if ( window > TCP_MAX_WINDOW_SIZE )
                window = TCP_MAX_WINDOW_SIZE;
        window &= ~0x03; /* Keep everything dword-aligned */