Kaynağa Gözat

SSL needs quite a lot of spare memory

tags/v0.9.3
Michael Brown 17 yıl önce
ebeveyn
işleme
3fd10074d8
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      src/net/tcp.c

+ 1
- 1
src/net/tcp.c Dosyayı Görüntüle

@@ -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…
İptal
Kaydet