Pārlūkot izejas kodu

SSL needs quite a lot of spare memory

tags/v0.9.3
Michael Brown 17 gadus atpakaļ
vecāks
revīzija
3fd10074d8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/net/tcp.c

+ 1
- 1
src/net/tcp.c Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt