瀏覽代碼

SSL needs quite a lot of spare memory

tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
3fd10074d8
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/net/tcp.c

+ 1
- 1
src/net/tcp.c 查看文件

@@ -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…
取消
儲存