Browse Source

SSL needs quite a lot of spare memory

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
3fd10074d8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/net/tcp.c

+ 1
- 1
src/net/tcp.c View File

288
 		start_timer ( &tcp->timer );
288
 		start_timer ( &tcp->timer );
289
 
289
 
290
 	/* Estimate window size */
290
 	/* Estimate window size */
291
-	window = freemem;
291
+	window = ( ( freemem * 3 ) / 4 );
292
 	if ( window > TCP_MAX_WINDOW_SIZE )
292
 	if ( window > TCP_MAX_WINDOW_SIZE )
293
 		window = TCP_MAX_WINDOW_SIZE;
293
 		window = TCP_MAX_WINDOW_SIZE;
294
 	window &= ~0x03; /* Keep everything dword-aligned */
294
 	window &= ~0x03; /* Keep everything dword-aligned */

Loading…
Cancel
Save