Changeset 2220


Ignore:
Timestamp:
May 24, 2011, 11:12:36 PM (3 years ago)
Author:
wmb
Message:

TCP - Reduced the TCP receive buffer size to keep the advertised window smaller, thus preventing the other end from sending-ahead more data than small-buffer network interfaces can handle. This makes HTTP reads work much better on OLPC XO-1.5 and 1.75 systems, especially over WLAN.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ofw/inet/tcp.fth

    r1814 r2220  
    19561956: alloc-buffers  ( -- ) 
    19571957   wbuf-allocate 
    1958    d# 1024 d# 16 *  to rbuf-len 
     1958   \ If rbuf-len is too large, the other end can send-ahead more data 
     1959   \ than some network interfaces can handle, leading to very poor 
     1960   \ performance and in some cases complete failure.  Ideally we would 
     1961   \ size this dynamically based on the network interface characteristics 
     1962   \ (speed, buffering), but for now we don't have suitable information 
     1963   \ in the network interface device node. 
     1964   d# 1024 8 *  to rbuf-len 
    19591965   rbuf-len alloc-mem to rbuf-adr 
    19601966   0 to rbuf-actual 
Note: See TracChangeset for help on using the changeset viewer.