2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-23 19:51:46 +00:00

SSL needs quite a lot of spare memory

This commit is contained in:
Michael Brown 2007-02-01 09:38:16 +00:00
parent e01aadd5a7
commit 3fd10074d8

View 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 */