]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
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 056c3e3c625d5c77064dac21b55695c9fdce2c3a..96cac77254649a9fde690134f45b0f5fe5d7f941 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 */