Browse Source

SSL needs quite a lot of spare memory

tags/v0.9.3
Michael Brown 17 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,7 +288,7 @@ static int tcp_senddata_conn ( struct tcp_connection *tcp, int force_send ) {
288 288
 		start_timer ( &tcp->timer );
289 289
 
290 290
 	/* Estimate window size */
291
-	window = freemem;
291
+	window = ( ( freemem * 3 ) / 4 );
292 292
 	if ( window > TCP_MAX_WINDOW_SIZE )
293 293
 		window = TCP_MAX_WINDOW_SIZE;
294 294
 	window &= ~0x03; /* Keep everything dword-aligned */

Loading…
Cancel
Save